1 diff -u busybox-0.60.5.old/usage.h busybox-0.60.5/usage.h
2 --- busybox-0.60.5.old/usage.h 2002-09-30 21:59:58.000000000 +0100
3 +++ busybox-0.60.5/usage.h 2004-01-16 00:42:40.000000000 +0000
4 @@ -1901,12 +1901,13 @@
5 " 31 46 1365 /etc/passwd\n"
7 #define wget_trivial_usage \
8 - "[-c|--continue] [-q|--quiet] [-O|--output-document file]\n\t[--header 'header: value'] [-P DIR] url"
9 + "[-c|--continue] [-q|--quiet] [-s|--spider] [-O|--output-document file]\n\t[--header 'header: value'] [-P DIR] url"
10 #define wget_full_usage \
11 "wget retrieves files via HTTP or FTP\n\n" \
13 "\t-c\tcontinue retrieval of aborted transfers\n" \
14 "\t-q\tquiet mode - do not print\n" \
15 + "\t-s\tspider mode - check file exists\n" \
16 "\t-P\tSet directory prefix to DIR\n" \
17 "\t-O\tsave to filename ('-' for stdout)"
19 diff -u busybox-0.60.5.old/wget.c busybox-0.60.5/wget.c
20 --- busybox-0.60.5.old/wget.c 2002-04-27 08:40:00.000000000 +0100
21 +++ busybox-0.60.5/wget.c 2004-01-16 00:47:47.000000000 +0000
23 int got_clen = 0; /* got content-length: from server */
24 FILE *output; /* socket to web server */
25 int quiet_flag = FALSE; /* Be verry, verry quiet... */
26 + int spider = FALSE; /* Just check file exists (-s) */
29 struct option long_options[] = {
31 { "quiet", 0, NULL, 'q' },
32 { "output-document", 1, NULL, 'O' },
33 { "header", 1, &which_long_opt, LONG_HEADER },
34 + { "spider", 0, NULL, 's' },
40 - while ((n = getopt_long(argc, argv, "cqO:P:", long_options, &option_index)) != EOF) {
41 + while ((n = getopt_long(argc, argv, "cqsO:P:", long_options, &option_index)) != EOF) {
53 while (gethdr(buf, sizeof(buf), sfp, &n) != NULL);
58 if (do_continue && output != stdout)
59 output = freopen(fname_out, "w", output);