summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ftp/tnftpd/Makefile1
-rw-r--r--ftp/tnftpd/files/patch-libnetbsd-glob.c12
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));
+ }
+