]> git.pld-linux.org Git - packages/ftpd-BSD.git/commitdiff
- outdated.
authorkloczek <kloczek@pld-linux.org>
Wed, 18 Jul 2001 22:37:29 +0000 (22:37 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    ftpd-BSD-overflow.patch -> 1.2

ftpd-BSD-overflow.patch [deleted file]

diff --git a/ftpd-BSD-overflow.patch b/ftpd-BSD-overflow.patch
deleted file mode 100644 (file)
index 9729da6..0000000
+++ /dev/null
@@ -1,30 +0,0 @@
---- libexec/ftpd/ftpd.c        2000/09/15 07:13:45     1.79
-+++ libexec/ftpd/ftpd.c        2000/12/05 17:06:29
-@@ -1959,15 +1959,21 @@
- replydirname(name, message)
-       const char *name, *message;
- {
-+      char *p, *ep;
-       char npath[MAXPATHLEN];
--      int i;
--      for (i = 0; *name != '\0' && i < sizeof(npath) - 1; i++, name++) {
--              npath[i] = *name;
--              if (*name == '"')
--                      npath[++i] = '"';
-+      p = npath;
-+      ep = &npath[sizeof(npath) - 1];
-+      while (*name) {
-+              if (*name == '"' && ep - p >= 2) {
-+                      *p++ = *name++;
-+                      *p++ = '"';
-+              } else if (ep - p >= 1)
-+                      *p++ = *name++;
-+              else
-+                      break;
-       }
--      npath[i] = '\0';
-+      *p = '\0';
-       reply(257, "\"%s\" %s", npath, message);
- }
This page took 0.061003 seconds and 4 git commands to generate.