← Commit list

8d3a6f7aa

Bernhard Reutner-Fischer
Bernhard Reutner-Fischer
2006-05-31
SOURCE BUG Duration: 39s

Subject

- add CONFIG_FEATURE_WGET_LONG_OPTIONS

SOURCE BUG

This commit was genuinely broken at the time (not related to our build system): scripts/config/mkconfigs.c (2005-08-01 - 2006-10-05 arasi) uretilen bbconfigopts.h icine .config satirlarini kacissiz, ham newline'larla gömüyordu - gecerli C degildi, busybox'un kendi bb_mkdep araci bile parse edemiyordu (7d219aab7 ile duzeltildi, mkconfigs shell scripte cevrildi)

→ Bu hatanin tam hikayesini ve duzeltme diffini gor

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

networking/Config.in+7 -0
@@ -683,6 +683,13 @@ config CONFIG_FEATURE_WGET_IP6_LITERAL
help
Support IPv6 address literal notation in URLs.
+config CONFIG_FEATURE_WGET_LONG_OPTIONS
+ bool "Enable long options"
+ default n
+ depends on CONFIG_WGET && CONFIG_GETOPT_LONG
+ help
+ Support long options for the wget applet.
+
config CONFIG_ZCIP
bool "zcip"
default n
networking/wget.c+4 -0
@@ -147,6 +147,7 @@ static char *base64enc(unsigned char *p, char *buf, int len) {
#define WGET_OPT_PREFIX 32
#define WGET_OPT_PROXY 64
+#if ENABLE_WGET_LONG_OPTIONS
static const struct option wget_long_options[] = {
{ "continue", 0, NULL, 'c' },
{ "quiet", 0, NULL, 'q' },
@@ -157,6 +158,7 @@ static const struct option wget_long_options[] = {
{ "proxy", 1, NULL, 'Y' },
{ 0, 0, 0, 0 }
};
+#endif
int wget_main(int argc, char **argv)
{
@@ -189,7 +191,9 @@ int wget_main(int argc, char **argv)
* Crack command line.
*/
bb_opt_complementally = "-1:\203::";
+#if ENABLE_WGET_LONG_OPTIONS
bb_applet_long_options = wget_long_options;
+#endif
opt = bb_getopt_ulflags(argc, argv, "cq\213O:\203:P:Y:",
&fname_out, &headers_llist,
&dir_prefix, &proxy_flag);