Merge from vendor branch TNF:
[pkgsrcv2.git] / net / wu-ftpd / patches / patch-am
1 $NetBSD$
2
3 --- src/extensions.c.orig       Fri Feb 26 09:08:46 1999
4 +++ src/extensions.c    Sun Mar  7 15:54:53 1999
5 @@ -1064,6 +1064,11 @@
6  
7        /* what's our current directory? */
8  
9 +      if (strlen (name) >= sizeof path) { /* path too long? --> bail out */
10 +          perror_reply(550, "Could not determine cwdir");
11 +          return(-1);
12 +      }
13 +
14        strcpy(path, name);
15        if (sp = strrchr(path, '/'))  *sp = '\0';
16        else strcpy(path, ".");