diff options
author | sf <sf@FreeBSD.org> | 2005-06-10 16:14:48 +0800 |
---|---|---|
committer | sf <sf@FreeBSD.org> | 2005-06-10 16:14:48 +0800 |
commit | c13350595599082a7a8790ea5985df6ce56dce72 (patch) | |
tree | 551aa00f21d3400bd3f997bbfcab8e2282a73300 /ftp/wget/files | |
parent | 8322dc3ea0aa955f65857b6be373e99554c1eabb (diff) | |
download | freebsd-ports-gnome-c13350595599082a7a8790ea5985df6ce56dce72.tar.gz freebsd-ports-gnome-c13350595599082a7a8790ea5985df6ce56dce72.tar.zst freebsd-ports-gnome-c13350595599082a7a8790ea5985df6ce56dce72.zip |
update to 1.10.
Diffstat (limited to 'ftp/wget/files')
-rw-r--r-- | ftp/wget/files/patch-CAN-2004-1487 | 51 |
1 files changed, 0 insertions, 51 deletions
diff --git a/ftp/wget/files/patch-CAN-2004-1487 b/ftp/wget/files/patch-CAN-2004-1487 deleted file mode 100644 index d37947a1c88f..000000000000 --- a/ftp/wget/files/patch-CAN-2004-1487 +++ /dev/null @@ -1,51 +0,0 @@ -diff -ruN wget-LFS-20040909/src/http.c wget-LFS-20040909.patched/src/http.c ---- src/http.c.orig 2004-09-09 19:28:26.000000000 -0700 -+++ src/http.c 2005-02-21 04:13:05.000000000 -0800 -@@ -1719,6 +1719,7 @@ - /* Open the local file. */ - if (!output_stream) - { -+ sanitize_path(*hs->local_file); - mkalldirs (*hs->local_file); - if (opt.backups) - rotate_backups (*hs->local_file); -diff -ruN wget-LFS-20040909/src/utils.c wget-LFS-20040909.patched/src/utils.c ---- src/utils.c.orig 2004-09-09 13:32:07.000000000 -0700 -+++ src/utils.c 2005-02-21 04:11:54.000000000 -0800 -@@ -368,6 +368,25 @@ - #endif - } - -+ -+char * -+sanitize_path(char *path) -+{ -+ char *str = NULL; -+ -+ /* evilhost/../ */ -+ while ((str = strstr(path, "..")) != NULL) -+ memcpy(str, "__", 2); -+ /* evilhost/.bashrc */ -+ while ((str = strstr(path, "/.")) != NULL) -+ str[1] = '_'; -+ /* .bashrc */ -+ if (*path == '.') -+ *path = '_'; -+ return path; -+} -+ -+ - /* Returns 0 if PATH is a directory, 1 otherwise (any kind of file). - Returns 0 on error. */ - int -diff -ruN wget-LFS-20040909/src/utils.h wget-LFS-20040909.patched/src/utils.h ---- src/utils.h.orig 2004-09-09 21:05:36.000000000 -0700 -+++ src/utils.h 2005-02-21 04:04:07.000000000 -0800 -@@ -83,6 +83,7 @@ - int make_directory PARAMS ((const char *)); - char *unique_name PARAMS ((const char *, int)); - char *file_merge PARAMS ((const char *, const char *)); -+char *sanitize_path PARAMS ((char *)); - - int acceptable PARAMS ((const char *)); - int accdir PARAMS ((const char *s, enum accd)); |