diff options
author | Ron Yorston <rmy@pobox.com> | 2017-08-22 14:56:12 +0100 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2017-08-22 14:56:12 +0100 |
commit | ce9af1cc5ea23f754587448cf35b5120c77bfeef (patch) | |
tree | 69e5eaba5e75ab909ed92d5045393471b8ff3c13 /networking/wget.c | |
parent | c170026700eabb10147dd848c45c06995b43a32e (diff) | |
parent | e837a0dbbebf4229306df98fe9ee3b9bb30630c4 (diff) | |
download | busybox-w32-ce9af1cc5ea23f754587448cf35b5120c77bfeef.tar.gz busybox-w32-ce9af1cc5ea23f754587448cf35b5120c77bfeef.tar.bz2 busybox-w32-ce9af1cc5ea23f754587448cf35b5120c77bfeef.zip |
Merge branch 'busybox' into merge
Diffstat (limited to 'networking/wget.c')
-rw-r--r-- | networking/wget.c | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/networking/wget.c b/networking/wget.c index ab9bc1836..0001ddcba 100644 --- a/networking/wget.c +++ b/networking/wget.c | |||
@@ -1371,6 +1371,11 @@ IF_DESKTOP( "no-clobber\0" No_argument "\xf0") | |||
1371 | IF_DESKTOP( "no-host-directories\0" No_argument "\xf0") | 1371 | IF_DESKTOP( "no-host-directories\0" No_argument "\xf0") |
1372 | IF_DESKTOP( "no-parent\0" No_argument "\xf0") | 1372 | IF_DESKTOP( "no-parent\0" No_argument "\xf0") |
1373 | ; | 1373 | ; |
1374 | # define GETOPT32 getopt32long | ||
1375 | # define LONGOPTS ,wget_longopts | ||
1376 | #else | ||
1377 | # define GETOPT32 getopt32 | ||
1378 | # define LONGOPTS | ||
1374 | #endif | 1379 | #endif |
1375 | 1380 | ||
1376 | #if ENABLE_FEATURE_WGET_LONG_OPTIONS | 1381 | #if ENABLE_FEATURE_WGET_LONG_OPTIONS |
@@ -1387,11 +1392,9 @@ IF_DESKTOP( "no-parent\0" No_argument "\xf0") | |||
1387 | G.user_agent = "Wget"; /* "User-Agent" header field */ | 1392 | G.user_agent = "Wget"; /* "User-Agent" header field */ |
1388 | 1393 | ||
1389 | #if ENABLE_FEATURE_WGET_LONG_OPTIONS | 1394 | #if ENABLE_FEATURE_WGET_LONG_OPTIONS |
1390 | applet_long_options = wget_longopts; | ||
1391 | #endif | 1395 | #endif |
1392 | opt_complementary = "-1" /* at least one URL */ | 1396 | GETOPT32(argv, "^" |
1393 | IF_FEATURE_WGET_LONG_OPTIONS(":\xff::"); /* --header is a list */ | 1397 | "cqSO:P:Y:U:T:+" |
1394 | getopt32(argv, "cqSO:P:Y:U:T:+" | ||
1395 | /*ignored:*/ "t:" | 1398 | /*ignored:*/ "t:" |
1396 | /*ignored:*/ "n::" | 1399 | /*ignored:*/ "n::" |
1397 | /* wget has exactly four -n<letter> opts, all of which we can ignore: | 1400 | /* wget has exactly four -n<letter> opts, all of which we can ignore: |
@@ -1402,6 +1405,10 @@ IF_DESKTOP( "no-parent\0" No_argument "\xf0") | |||
1402 | * "n::" above says that we accept -n[ARG]. | 1405 | * "n::" above says that we accept -n[ARG]. |
1403 | * Specifying "n:" would be a bug: "-n ARG" would eat ARG! | 1406 | * Specifying "n:" would be a bug: "-n ARG" would eat ARG! |
1404 | */ | 1407 | */ |
1408 | "\0" | ||
1409 | "-1" /* at least one URL */ | ||
1410 | IF_FEATURE_WGET_LONG_OPTIONS(":\xff::") /* --header is a list */ | ||
1411 | LONGOPTS | ||
1405 | , &G.fname_out, &G.dir_prefix, | 1412 | , &G.fname_out, &G.dir_prefix, |
1406 | &G.proxy_flag, &G.user_agent, | 1413 | &G.proxy_flag, &G.user_agent, |
1407 | IF_FEATURE_WGET_TIMEOUT(&G.timeout_seconds) IF_NOT_FEATURE_WGET_TIMEOUT(NULL), | 1414 | IF_FEATURE_WGET_TIMEOUT(&G.timeout_seconds) IF_NOT_FEATURE_WGET_TIMEOUT(NULL), |