2
## PATCHNAME by NAME <EMAIL>
7
echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
11
[ -f debian/patches/00patch-opts ] && . debian/patches/00patch-opts
12
patch_opts="${patch_opts:--f --no-backup-if-mismatch} ${2:+-d $2}"
15
-patch) patch $patch_opts -p1 < $0;;
16
-unpatch) patch $patch_opts -p1 -R < $0;;
18
echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
25
diff -ur wget-1.10.orig/src/retr.c wget-1.10/src/retr.c
26
--- wget-1.10.orig/src/retr.c (revision 1817)
27
+++ wget-1.10/src/retr.c (working copy)
30
else if (u->scheme == SCHEME_FTP)
32
- /* If this is a redirection, we must not allow recursive FTP
33
- retrieval, so we save recursion to oldrec, and restore it
35
- int oldrec = opt.recursive;
36
+ /* If this is a redirection, temporarily turn off opt.ftp_glob
37
+ and opt.recursive, both being undesirable when following
39
+ int oldrec = opt.recursive, oldglob = opt.ftp_glob;
40
if (redirection_count)
42
+ opt.recursive = opt.ftp_glob = 0;
44
result = ftp_loop (u, dt, proxy_url);
45
opt.recursive = oldrec;
46
+ opt.ftp_glob = oldglob;
48
/* There is a possibility of having HTTP being redirected to
49
FTP. In these cases we must decide whether the text is HTML
51
diff -ur wget-1.10.orig/src/http.c wget-1.10/src/http.c
52
--- wget-1.10.orig/src/http.c (revision 1817)
53
+++ wget-1.10/src/http.c (working copy)
57
/* Warn on (likely bogus) wildcard usage in HTTP. */
58
- if (has_wildcards_p (u->path))
59
+ if (opt.ftp_glob && has_wildcards_p (u->path))
60
logputs (LOG_VERBOSE, _("Warning: wildcards not supported in HTTP.\n"));