aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Griebl <griebl@gmx.de>2002-07-12 00:04:46 +0000
committerRobert Griebl <griebl@gmx.de>2002-07-12 00:04:46 +0000
commite8fcf4bd69c8b321246cc3103728de3b67d5d6ac (patch)
tree5575072ced42e1eba4ee13375239159182fa2dc6
parent2276d836398564a90f5ff237e63ca3104ae509f0 (diff)
downloadbusybox-e8fcf4bd69c8b321246cc3103728de3b67d5d6ac.tar.gz
Accept the --passive-ftp cmd.line option. We always use passive ftp mode,
so it doesn't hurt (adds compatibility though)
-rw-r--r--networking/wget.c22
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)
int quiet_flag = FALSE; /* Be verry, verry quiet... */
int noproxy = 0; /* Use proxies if env vars are set */
-#define LONG_HEADER 1
+#define LONG_HEADER 1
+#define LONG_PASSIVE 2
+
struct option long_options[] = {
- { "continue", 0, NULL, 'c' },
- { "quiet", 0, NULL, 'q' },
- { "output-document", 1, NULL, 'O' },
- { "header", 1, &which_long_opt, LONG_HEADER },
- { "proxy", 1, NULL, 'Y' },
- { 0, 0, 0, 0 }
+ { "continue", 0, NULL, 'c' },
+ { "quiet", 0, NULL, 'q' },
+ { "output-document", 1, NULL, 'O' },
+ { "header", 1, &which_long_opt, LONG_HEADER },
+ { "proxy", 1, NULL, 'Y' },
+ { "passive-ftp", 0, &which_long_opt, LONG_PASSIVE },
+ { 0, 0, 0, 0 }
};
/*
* Crack command line.
@@ -227,6 +230,9 @@ int wget_main(int argc, char **argv)
*(extra_headers_ptr + 1) = 0;
break;
}
+ case LONG_PASSIVE:
+ // ignore -- we always use passive mode
+ break;
}
break;
default:
@@ -818,7 +824,7 @@ progressmeter(int flag)
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: wget.c,v 1.50 2002/07/03 11:51:44 andersen Exp $
+ * $Id: wget.c,v 1.51 2002/07/12 00:04:46 sandman Exp $
*/