[git commit master] wget: ignore --no-check-certificate

Bernhard Reutner-Fischer rep.dot.nop at gmail.com
Wed Feb 10 18:37:29 UTC 2010


commit: http://git.busybox.net/busybox/commit/?id=3fdba181c34f537867fce0b5afa2cc360b11be25
branch: http://git.busybox.net/busybox/commit/?id=refs/heads/master

Used in a number of scripts, don't barf on it (we don't do ssl ATM).

function                                             old     new   delta
static.wget_longopts                                 122     145     +23
.rodata                                           131925  131947     +22
packed_usage                                       26860   26859      -1
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 2/1 up/down: 45/-1)              Total: 44 bytes

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop at gmail.com>
---
 include/usage.h   |    2 +-
 networking/wget.c |    2 ++
 2 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/include/usage.h b/include/usage.h
index c2ffb6d..643d35f 100644
--- a/include/usage.h
+++ b/include/usage.h
@@ -5083,7 +5083,7 @@
 	IF_FEATURE_WGET_LONG_OPTIONS( \
        "[-c|--continue] [-s|--spider] [-q|--quiet] [-O|--output-document file]\n" \
        "	[--header 'header: value'] [-Y|--proxy on/off] [-P DIR]\n" \
-       "	[-U|--user-agent agent] url" \
+       "	[--no-check-certificate] [-U|--user-agent agent] url" \
 	) \
 	IF_NOT_FEATURE_WGET_LONG_OPTIONS( \
        "[-csq] [-O file] [-Y on/off] [-P DIR] [-U agent] url" \
diff --git a/networking/wget.c b/networking/wget.c
index 9d813dc..2b9ba55 100644
--- a/networking/wget.c
+++ b/networking/wget.c
@@ -546,6 +546,8 @@ int wget_main(int argc UNUSED_PARAM, char **argv)
 		"passive-ftp\0"      No_argument       "\xff"
 		"header\0"           Required_argument "\xfe"
 		"post-data\0"        Required_argument "\xfd"
+		/* Ignored (we don't do ssl) */
+		"no-check-certificate\0" No_argument   "\xfc"
 		;
 #endif
 
-- 
1.6.3.3



More information about the busybox-cvs mailing list