diff options
author | Martin Wilke <miwi@FreeBSD.org> | 2006-12-13 07:21:34 +0000 |
---|---|---|
committer | Martin Wilke <miwi@FreeBSD.org> | 2006-12-13 07:21:34 +0000 |
commit | cda86e054f663e58189f36701c11b1073f6e865f (patch) | |
tree | cc4eca6fa3f2716258688439bdc69218535cded0 /ftp | |
parent | Cure textproc/docbook-xsd by fixing master site. (diff) |
- Fix root exploid
PR: ports/106594
Submitted by: Sergey N. Voronkov <serg@tmn.ru>
Approved by: maintainer
Security: http://www.vuxml.org/freebsd/e969e6cb-8911-11db-9d01-0016179b2dd5.html
Notes
Notes:
svn path=/head/; revision=179632
Diffstat (limited to 'ftp')
-rw-r--r-- | ftp/tnftpd/Makefile | 1 | ||||
-rw-r--r-- | ftp/tnftpd/files/patch-libnetbsd-glob.c | 12 |
2 files changed, 13 insertions, 0 deletions
diff --git a/ftp/tnftpd/Makefile b/ftp/tnftpd/Makefile index 8b87321b31d8..7d894473290d 100644 --- a/ftp/tnftpd/Makefile +++ b/ftp/tnftpd/Makefile @@ -7,6 +7,7 @@ PORTNAME= tnftpd PORTVERSION= 20040810 +PORTREVISION= 1 CATEGORIES= ftp ipv6 MASTER_SITES= ftp://ftp.netbsd.org/pub/NetBSD/misc/tnftp/ diff --git a/ftp/tnftpd/files/patch-libnetbsd-glob.c b/ftp/tnftpd/files/patch-libnetbsd-glob.c new file mode 100644 index 000000000000..d54a2e93d6fa --- /dev/null +++ b/ftp/tnftpd/files/patch-libnetbsd-glob.c @@ -0,0 +1,12 @@ +--- libnetbsd/glob.c.orig Mon Dec 15 13:18:43 2003 ++++ libnetbsd/glob.c Wed Dec 13 08:16:13 2006 +@@ -497,7 +497,8 @@ + * we save one character so that we can use ptr >= limit, + * in the general case when we are appending non nul chars only. + */ +- return(glob2(pathbuf, pathbuf, pathbuf + sizeof(pathbuf) - 1, pattern, ++ return(glob2(pathbuf, pathbuf, ++ pathbuf + (sizeof(pathbuf) / sizeof(*pathbuf)) - 1, pattern, + pglob, limit)); + } + |