--- wu-ftpd-2.6.2/src/realpath.c.orig 2003-07-31 14:10:42.000000000 -0300 +++ wu-ftpd-2.6.2/src/realpath.c 2003-07-31 14:10:55.000000000 -0300 @@ -299,7 +299,7 @@ rootd = 0; if (*wbuf) { - if (strlen(resolved) + strlen(wbuf) + rootd + 1 > MAXPATHLEN) { + if (strlen(resolved) + strlen(wbuf) + (1 - rootd) + 1 > MAXPATHLEN) { errno = ENAMETOOLONG; goto err1; }