summaryrefslogtreecommitdiff
path: root/package/busybox/patches/004-wget-accept-long-opts.patch
diff options
context:
space:
mode:
Diffstat (limited to 'package/busybox/patches/004-wget-accept-long-opts.patch')
-rw-r--r--package/busybox/patches/004-wget-accept-long-opts.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/package/busybox/patches/004-wget-accept-long-opts.patch b/package/busybox/patches/004-wget-accept-long-opts.patch
new file mode 100644
index 000000000..5d3891db0
--- /dev/null
+++ b/package/busybox/patches/004-wget-accept-long-opts.patch
@@ -0,0 +1,23 @@
+diff -Nur busybox-1.17.0.orig/networking/wget.c busybox-1.17.0/networking/wget.c
+--- busybox-1.17.0.orig/networking/wget.c 2010-06-24 04:40:43.000000000 +0200
++++ busybox-1.17.0/networking/wget.c 2010-07-16 15:00:51.819609996 +0200
+@@ -542,8 +542,8 @@
+ "proxy\0" Required_argument "Y"
+ "user-agent\0" Required_argument "U"
+ /* Ignored: */
+- // "tries\0" Required_argument "t"
+- // "timeout\0" Required_argument "T"
++ "tries\0" Required_argument "t"
++ "timeout\0" Required_argument "T"
+ /* Ignored (we always use PASV): */
+ "passive-ftp\0" No_argument "\xff"
+ "header\0" Required_argument "\xfe"
+@@ -560,7 +560,7 @@
+ #endif
+ /* server.allocated = target.allocated = NULL; */
+ opt_complementary = "-1" IF_FEATURE_WGET_LONG_OPTIONS(":\xfe::");
+- opt = getopt32(argv, "csqO:P:Y:U:" /*ignored:*/ "t:T:",
++ opt = getopt32(argv, "csqO:P:Y:U:t:T:",
+ &fname_out, &dir_prefix,
+ &proxy_flag, &user_agent,
+ NULL, /* -t RETRIES */