- Fix buffer overflow [1]

- Fix telnet vulnerability [2]
- Unbreak and unforbid
- Bump PORTREVISION

VuXML:		cdf14b68-3ff9-11d9-8405-00065be4b5b6 [1]
Obtained from:	Gentoo CVS [1]
		project's patch tracker at sf.net [2]
This commit is contained in:
Alexey Dokuchaev 2005-02-13 11:24:54 +00:00
parent d534e1a494
commit 1bca823dd3
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=128685
6 changed files with 46 additions and 10 deletions

View file

@ -7,7 +7,7 @@
PORTNAME= opendchub
PORTVERSION= 0.7.14
PORTREVISION= 1
PORTREVISION= 2
CATEGORIES= net
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
@ -21,10 +21,6 @@ GNU_CONFIGURE= yes
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include"
FORBIDDEN= "http://vuxml.freebsd.org/cdf14b68-3ff9-11d9-8405-00065be4b5b6.html"
EXPIRATION_DATE=2005-02-18
DEPRECATED= ${FORBIDDEN}
post-install:
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}

View file

@ -0,0 +1,11 @@
--- src/commands.c.orig Sun Feb 13 17:16:37 2005
+++ src/commands.c Sun Feb 13 17:17:18 2005
@@ -2842,7 +2842,7 @@
{
char move_string[MAX_HOST_LEN+20];
- sprintf(move_string, "$ForceMove %s", buf);
+ snprintf(move_string, MAX_HOST_LEN, "$ForceMove %s", buf);
send_to_humans(move_string, REGULAR | REGISTERED | OP, user);
remove_all(UNKEYED | NON_LOGGED | REGULAR | REGISTERED | OP, 1, 1);

View file

@ -0,0 +1,11 @@
--- src/main.c.orig Sun Feb 13 16:54:21 2005
+++ src/main.c Sun Feb 13 16:55:31 2005
@@ -1056,7 +1056,7 @@
/* The chat command, starts with <nick> */
else if(*temp == '<')
{
- if((user->type & (SCRIPT | UNKEYED | LINKED | NON_LOGGED)) == 0)
+ if((user->type & (SCRIPT | UNKEYED | LINKED | NON_LOGGED | NON_LOGGED_ADM)) == 0)
chat(temp, user);
}

View file

@ -7,7 +7,7 @@
PORTNAME= opendchub
PORTVERSION= 0.7.14
PORTREVISION= 1
PORTREVISION= 2
CATEGORIES= net
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
@ -21,10 +21,6 @@ GNU_CONFIGURE= yes
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include"
FORBIDDEN= "http://vuxml.freebsd.org/cdf14b68-3ff9-11d9-8405-00065be4b5b6.html"
EXPIRATION_DATE=2005-02-18
DEPRECATED= ${FORBIDDEN}
post-install:
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}

View file

@ -0,0 +1,11 @@
--- src/commands.c.orig Sun Feb 13 17:16:37 2005
+++ src/commands.c Sun Feb 13 17:17:18 2005
@@ -2842,7 +2842,7 @@
{
char move_string[MAX_HOST_LEN+20];
- sprintf(move_string, "$ForceMove %s", buf);
+ snprintf(move_string, MAX_HOST_LEN, "$ForceMove %s", buf);
send_to_humans(move_string, REGULAR | REGISTERED | OP, user);
remove_all(UNKEYED | NON_LOGGED | REGULAR | REGISTERED | OP, 1, 1);

View file

@ -0,0 +1,11 @@
--- src/main.c.orig Sun Feb 13 16:54:21 2005
+++ src/main.c Sun Feb 13 16:55:31 2005
@@ -1056,7 +1056,7 @@
/* The chat command, starts with <nick> */
else if(*temp == '<')
{
- if((user->type & (SCRIPT | UNKEYED | LINKED | NON_LOGGED)) == 0)
+ if((user->type & (SCRIPT | UNKEYED | LINKED | NON_LOGGED | NON_LOGGED_ADM)) == 0)
chat(temp, user);
}