diff options
author | rh <rh@pkgsrc.org> | 1999-03-07 16:31:59 +0000 |
---|---|---|
committer | rh <rh@pkgsrc.org> | 1999-03-07 16:31:59 +0000 |
commit | a9b43c22aa43d33bd6d099255772e7bb605fac74 (patch) | |
tree | 5dbc2c47e1c470da142911f434c12ac2cda1680e /net/wu-ftpd/patches | |
parent | 8796d1bb54002bda6a14df945a2d87f3ee1c1e1b (diff) | |
download | pkgsrc-a9b43c22aa43d33bd6d099255772e7bb605fac74.tar.gz |
Update to wu-ftpd-2.4.2 (non-beta)
Add conflicts with beroftpd and renamed wu-ftpd-vr packages
Diffstat (limited to 'net/wu-ftpd/patches')
-rw-r--r-- | net/wu-ftpd/patches/patch-al | 50 | ||||
-rw-r--r-- | net/wu-ftpd/patches/patch-am | 47 | ||||
-rw-r--r-- | net/wu-ftpd/patches/patch-an | 8 |
3 files changed, 20 insertions, 85 deletions
diff --git a/net/wu-ftpd/patches/patch-al b/net/wu-ftpd/patches/patch-al index ac8f7ac9087..f32e52de439 100644 --- a/net/wu-ftpd/patches/patch-al +++ b/net/wu-ftpd/patches/patch-al @@ -1,7 +1,7 @@ -$NetBSD: patch-al,v 1.4 1999/02/14 15:27:50 rh Exp $ +$NetBSD: patch-al,v 1.5 1999/03/07 16:32:00 rh Exp $ ---- src/realpath.c.orig Mon Jul 6 11:14:39 1998 -+++ src/realpath.c Sun Feb 14 14:42:03 1999 +--- src/realpath.c.orig Fri Feb 26 09:08:54 1999 ++++ src/realpath.c Sun Mar 7 15:53:38 1999 @@ -70,7 +70,8 @@ if (result == NULL) /* result must not be null! */ return(NULL); @@ -12,52 +12,20 @@ $NetBSD: patch-al,v 1.4 1999/02/14 15:27:50 rh Exp $ *result = '\0'; return(NULL); } -@@ -141,9 +142,22 @@ - strcpy(namebuf, workpath); +@@ -145,8 +146,15 @@ + for (last = namebuf; *last; last++) continue; - if ((last == namebuf) || (*--last != '/')) -- strcat(namebuf, "/"); -- strcat(namebuf, where); + if ((last == namebuf) || (*--last != '/')) { + if (strlen (namebuf) + 1 < sizeof (namebuf)) { -+ strcat(namebuf, "/"); + strcat(namebuf, "/"); + } else { + /* path too long: bail out */ -+ *result = '\0'; ++ *result = '\0'; + return (NULL); + } + } -+ if (strlen(namebuf)+strlen(where) < sizeof(namebuf)) { -+ strcat(namebuf, where); -+ } else { -+ /* path too long: bail out */ -+ *result = '\0'; -+ return (NULL); -+ } - where = ++ptr; - if (lstat(namebuf, &sbuf) == -1) { -@@ -153,7 +167,7 @@ - /* was IFLNK */ - #ifdef HAVE_SYMLINK - if ((sbuf.st_mode & S_IFMT) == S_IFLNK) { -- len = readlink(namebuf, linkpath, MAXPATHLEN); -+ len = readlink(namebuf, linkpath, sizeof(linkpath) - 1); - if (len == 0) { - strcpy(result, namebuf); - return (NULL); -@@ -164,7 +178,13 @@ - *workpath = '\0'; - if (*where) { - strcat(linkpath, "/"); -+ if (strlen(linkpath) + strlen(where) < sizeof(linkpath)) { - strcat(linkpath, where); -+ } else { -+ /* path too long: bail out */ -+ *result = '\0'; -+ return (NULL); -+ } - } - strcpy(curpath, linkpath); - goto loop; + if (strlen(namebuf) + strlen(where) + 1 < MAXPATHLEN) + strcat(namebuf, where); diff --git a/net/wu-ftpd/patches/patch-am b/net/wu-ftpd/patches/patch-am index c14a0079865..4fd88763c47 100644 --- a/net/wu-ftpd/patches/patch-am +++ b/net/wu-ftpd/patches/patch-am @@ -1,49 +1,16 @@ -$NetBSD: patch-am,v 1.3 1999/02/14 15:27:51 rh Exp $ +$NetBSD: patch-am,v 1.4 1999/03/07 16:32:00 rh Exp $ ---- src/extensions.c.orig Mon Jul 6 11:14:17 1998 -+++ src/extensions.c Sun Feb 14 14:53:10 1999 -@@ -990,14 +990,19 @@ - *ap3 = NULL, - *ap4 = NULL, - *ap6 = NULL; -- char cwdir[BUFSIZ]; -- char path[BUFSIZ]; -+ char cwdir[MAXPATHLEN]; -+ char path[MAXPATHLEN]; - char *sp; - extern struct passwd *pw; - - *valid = 0; - /* what's our current directory? */ - -+ if (strlen (name) >= sizeof path) { /* path too long? --> bail out */ -+ perror_reply(550, "Could not determine cwdir"); -+ return(-1); -+ } -+ - strcpy(path, name); - if (sp = strrchr(path, '/')) *sp = '\0'; - else strcpy(path, "."); -@@ -1046,8 +1051,8 @@ - #endif - { - int match_value = -1; -- char cwdir[BUFSIZ]; -- char path[BUFSIZ]; -+ char cwdir[MAXPATHLEN]; -+ char path[MAXPATHLEN]; - char *sp; - int i; - -@@ -1063,6 +1068,11 @@ - *valid = 0; +--- src/extensions.c.orig Fri Feb 26 09:08:46 1999 ++++ src/extensions.c Sun Mar 7 15:54:53 1999 +@@ -1064,6 +1064,11 @@ /* what's our current directory? */ -+ + + if (strlen (name) >= sizeof path) { /* path too long? --> bail out */ + perror_reply(550, "Could not determine cwdir"); + return(-1); + } - ++ strcpy(path, name); if (sp = strrchr(path, '/')) *sp = '\0'; + else strcpy(path, "."); diff --git a/net/wu-ftpd/patches/patch-an b/net/wu-ftpd/patches/patch-an index 7457ef18d23..a8f7144e6ce 100644 --- a/net/wu-ftpd/patches/patch-an +++ b/net/wu-ftpd/patches/patch-an @@ -1,8 +1,8 @@ -$NetBSD: patch-an,v 1.1 1999/02/14 15:27:51 rh Exp $ +$NetBSD: patch-an,v 1.2 1999/03/07 16:32:00 rh Exp $ ---- src/ftpcmd.y.orig Mon Jul 6 11:14:19 1998 -+++ src/ftpcmd.y Sun Feb 14 16:00:55 1999 -@@ -641,16 +641,16 @@ +--- src/ftpcmd.y.orig Fri Feb 26 09:08:47 1999 ++++ src/ftpcmd.y Sun Mar 7 15:58:17 1999 +@@ -642,16 +642,16 @@ | SYST CRLF = { if (log_commands) syslog(LOG_INFO, "SYST"); |