freebsd-ports/ftp/wu-ftpd+ipv6/files/patch-as
Daniel Harris beff7f49ae Address CAN-2003-0466.
Submitted/approved by:	security-officer
2003-07-31 16:07:05 +00:00

11 lines
328 B
Text

--- 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;
}