diff options
author | Robert Griebl <griebl@gmx.de> | 2002-07-12 00:04:46 +0000 |
---|---|---|
committer | Robert Griebl <griebl@gmx.de> | 2002-07-12 00:04:46 +0000 |
commit | e8fcf4bd69c8b321246cc3103728de3b67d5d6ac (patch) | |
tree | 5575072ced42e1eba4ee13375239159182fa2dc6 /networking/wget.c | |
parent | 2276d836398564a90f5ff237e63ca3104ae509f0 (diff) | |
download | busybox-w32-e8fcf4bd69c8b321246cc3103728de3b67d5d6ac.tar.gz busybox-w32-e8fcf4bd69c8b321246cc3103728de3b67d5d6ac.tar.bz2 busybox-w32-e8fcf4bd69c8b321246cc3103728de3b67d5d6ac.zip |
Accept the --passive-ftp cmd.line option. We always use passive ftp mode,
so it doesn't hurt (adds compatibility though)
Diffstat (limited to 'networking/wget.c')
-rw-r--r-- | networking/wget.c | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/networking/wget.c b/networking/wget.c index c6200219b..bd74cc88f 100644 --- a/networking/wget.c +++ b/networking/wget.c | |||
@@ -179,14 +179,17 @@ int wget_main(int argc, char **argv) | |||
179 | int quiet_flag = FALSE; /* Be verry, verry quiet... */ | 179 | int quiet_flag = FALSE; /* Be verry, verry quiet... */ |
180 | int noproxy = 0; /* Use proxies if env vars are set */ | 180 | int noproxy = 0; /* Use proxies if env vars are set */ |
181 | 181 | ||
182 | #define LONG_HEADER 1 | 182 | #define LONG_HEADER 1 |
183 | #define LONG_PASSIVE 2 | ||
184 | |||
183 | struct option long_options[] = { | 185 | struct option long_options[] = { |
184 | { "continue", 0, NULL, 'c' }, | 186 | { "continue", 0, NULL, 'c' }, |
185 | { "quiet", 0, NULL, 'q' }, | 187 | { "quiet", 0, NULL, 'q' }, |
186 | { "output-document", 1, NULL, 'O' }, | 188 | { "output-document", 1, NULL, 'O' }, |
187 | { "header", 1, &which_long_opt, LONG_HEADER }, | 189 | { "header", 1, &which_long_opt, LONG_HEADER }, |
188 | { "proxy", 1, NULL, 'Y' }, | 190 | { "proxy", 1, NULL, 'Y' }, |
189 | { 0, 0, 0, 0 } | 191 | { "passive-ftp", 0, &which_long_opt, LONG_PASSIVE }, |
192 | { 0, 0, 0, 0 } | ||
190 | }; | 193 | }; |
191 | /* | 194 | /* |
192 | * Crack command line. | 195 | * Crack command line. |
@@ -227,6 +230,9 @@ int wget_main(int argc, char **argv) | |||
227 | *(extra_headers_ptr + 1) = 0; | 230 | *(extra_headers_ptr + 1) = 0; |
228 | break; | 231 | break; |
229 | } | 232 | } |
233 | case LONG_PASSIVE: | ||
234 | // ignore -- we always use passive mode | ||
235 | break; | ||
230 | } | 236 | } |
231 | break; | 237 | break; |
232 | default: | 238 | default: |
@@ -818,7 +824,7 @@ progressmeter(int flag) | |||
818 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | 824 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
819 | * SUCH DAMAGE. | 825 | * SUCH DAMAGE. |
820 | * | 826 | * |
821 | * $Id: wget.c,v 1.50 2002/07/03 11:51:44 andersen Exp $ | 827 | * $Id: wget.c,v 1.51 2002/07/12 00:04:46 sandman Exp $ |
822 | */ | 828 | */ |
823 | 829 | ||
824 | 830 | ||