004-wget-accept-long-opts.patch 1.0 KB

1234567891011121314151617181920212223
  1. diff -Nur busybox-1.17.0.orig/networking/wget.c busybox-1.17.0/networking/wget.c
  2. --- busybox-1.17.0.orig/networking/wget.c 2010-06-24 04:40:43.000000000 +0200
  3. +++ busybox-1.17.0/networking/wget.c 2010-07-16 15:00:51.819609996 +0200
  4. @@ -542,8 +542,8 @@
  5. "proxy\0" Required_argument "Y"
  6. "user-agent\0" Required_argument "U"
  7. /* Ignored: */
  8. - // "tries\0" Required_argument "t"
  9. - // "timeout\0" Required_argument "T"
  10. + "tries\0" Required_argument "t"
  11. + "timeout\0" Required_argument "T"
  12. /* Ignored (we always use PASV): */
  13. "passive-ftp\0" No_argument "\xff"
  14. "header\0" Required_argument "\xfe"
  15. @@ -560,7 +560,7 @@
  16. #endif
  17. /* server.allocated = target.allocated = NULL; */
  18. opt_complementary = "-1" IF_FEATURE_WGET_LONG_OPTIONS(":\xfe::");
  19. - opt = getopt32(argv, "csqO:P:Y:U:" /*ignored:*/ "t:T:",
  20. + opt = getopt32(argv, "csqO:P:Y:U:t:T:",
  21. &fname_out, &dir_prefix,
  22. &proxy_flag, &user_agent,
  23. NULL, /* -t RETRIES */