From 32dc8d8d6094ed402f3e4b07b5a2b8cf6aab0997 Mon Sep 17 00:00:00 2001 From: dannyboy Date: Thu, 31 Jul 2003 16:07:05 +0000 Subject: Address CAN-2003-0466. Submitted/approved by: security-officer --- ftp/wu-ftpd+ipv6/Makefile | 2 +- ftp/wu-ftpd+ipv6/files/patch-as | 11 +++++++++++ ftp/wu-ftpd/Makefile | 2 +- ftp/wu-ftpd/files/patch-as | 11 +++++++++++ 4 files changed, 24 insertions(+), 2 deletions(-) create mode 100644 ftp/wu-ftpd+ipv6/files/patch-as create mode 100644 ftp/wu-ftpd/files/patch-as (limited to 'ftp') diff --git a/ftp/wu-ftpd+ipv6/Makefile b/ftp/wu-ftpd+ipv6/Makefile index ecd5e270f4a..f7068f40a9c 100644 --- a/ftp/wu-ftpd+ipv6/Makefile +++ b/ftp/wu-ftpd+ipv6/Makefile @@ -9,7 +9,7 @@ PORTNAME= wu-ftpd+ipv6 PORTVERSION= 2.6.2 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= ftp ipv6 MASTER_SITES= ftp://ftp.wu-ftpd.org/pub/wu-ftpd/ DISTNAME= wu-ftpd-${PORTVERSION} diff --git a/ftp/wu-ftpd+ipv6/files/patch-as b/ftp/wu-ftpd+ipv6/files/patch-as new file mode 100644 index 00000000000..2f4570616c2 --- /dev/null +++ b/ftp/wu-ftpd+ipv6/files/patch-as @@ -0,0 +1,11 @@ +--- src/realpath.c.orig Mon Jul 28 16:18:15 2003 ++++ src/realpath.c Mon Jul 28 16:18:44 2003 +@@ -299,7 +299,7 @@ + rootd = 0; + + if (*wbuf) { +- if (strlen(resolved) + strlen(wbuf) + rootd + 1 > MAXPATHLEN) { ++ if (strlen(resolved) + strlen(wbuf) + !rootd + 1 > MAXPATHLEN) { + errno = ENAMETOOLONG; + goto err1; + } diff --git a/ftp/wu-ftpd/Makefile b/ftp/wu-ftpd/Makefile index 57d3782b3bb..2698183fe8a 100644 --- a/ftp/wu-ftpd/Makefile +++ b/ftp/wu-ftpd/Makefile @@ -9,7 +9,7 @@ PORTNAME= wu-ftpd PORTVERSION= 2.6.2 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= ftp MASTER_SITES= ftp://ftp.wu-ftpd.org/pub/wu-ftpd/ diff --git a/ftp/wu-ftpd/files/patch-as b/ftp/wu-ftpd/files/patch-as new file mode 100644 index 00000000000..2f4570616c2 --- /dev/null +++ b/ftp/wu-ftpd/files/patch-as @@ -0,0 +1,11 @@ +--- src/realpath.c.orig Mon Jul 28 16:18:15 2003 ++++ src/realpath.c Mon Jul 28 16:18:44 2003 +@@ -299,7 +299,7 @@ + rootd = 0; + + if (*wbuf) { +- if (strlen(resolved) + strlen(wbuf) + rootd + 1 > MAXPATHLEN) { ++ if (strlen(resolved) + strlen(wbuf) + !rootd + 1 > MAXPATHLEN) { + errno = ENAMETOOLONG; + goto err1; + } -- cgit