summaryrefslogtreecommitdiff
path: root/ftp/wget-devel/files/patch-src_ftp_c
diff options
context:
space:
mode:
Diffstat (limited to 'ftp/wget-devel/files/patch-src_ftp_c')
-rw-r--r--ftp/wget-devel/files/patch-src_ftp_c40
1 files changed, 0 insertions, 40 deletions
diff --git a/ftp/wget-devel/files/patch-src_ftp_c b/ftp/wget-devel/files/patch-src_ftp_c
deleted file mode 100644
index 3da2f4186d7e..000000000000
--- a/ftp/wget-devel/files/patch-src_ftp_c
+++ /dev/null
@@ -1,40 +0,0 @@
-$OpenBSD: patch-src_ftp_c,v 1.1 2002/12/10 18:37:24 brad Exp $
---- src/ftp.c.orig Tue Dec 10 13:08:00 2002
-+++ src/ftp.c Tue Dec 10 13:16:22 2002
-@@ -1637,6 +1637,7 @@ ftp_retrieve_glob (struct urlinfo *u, cc
- {
- struct fileinfo *orig, *start;
- uerr_t res;
-+ struct fileinfo *f;
-
- con->cmd |= LEAVE_PENDING;
-
-@@ -1648,8 +1649,7 @@ ftp_retrieve_glob (struct urlinfo *u, cc
- opt.accepts and opt.rejects. */
- if (opt.accepts || opt.rejects)
- {
-- struct fileinfo *f = orig;
--
-+ f = orig;
- while (f)
- {
- if (f->type != FT_DIRECTORY && !acceptable (f->name))
-@@ -1661,6 +1661,18 @@ ftp_retrieve_glob (struct urlinfo *u, cc
- f = f->next;
- }
- }
-+ /* Remove all files with possible harmful names */
-+ f = orig;
-+ while (f)
-+ {
-+ if (has_invalid_name(f->name))
-+ {
-+ logprintf (LOG_VERBOSE, _("Rejecting `%s'.\n"), f->name);
-+ f = delelement (f, &start);
-+ }
-+ else
-+ f = f->next;
-+ }
- /* Now weed out the files that do not match our globbing pattern.
- If we are dealing with a globbing pattern, that is. */
- if (*u->file && (action == GLOBALL || action == GETONE))