ccollect:0.6.2->0.7.0
[nslu2-linux/optware.git] / sources / wu-ftpd-realpath.patch
blobb5ea90526472204eeadfc0dc39fd14c340b21db3
1 A vulnerability has been found in the current versions of wu-ftpd, follow
2 the links from http://www.wu-ftpd.org/ for details.
4 Included below is a patch for CAN-2003-0466 to be applied to wu-ftpd 2.6.2.
6 --- src/realpath.c.orig Mon Aug 4 11:20:19 2003
7 +++ src/realpath.c Mon Aug 4 11:23:22 2003
8 @@ -299,7 +299,7 @@
9 rootd = 0;
11 if (*wbuf) {
12 - if (strlen(resolved) + strlen(wbuf) + rootd + 1 > MAXPATHLEN) {
13 + if (strlen(resolved) + strlen(wbuf) + !rootd + 1 > MAXPATHLEN) {
14 errno = ENAMETOOLONG;
15 goto err1;