diff options
| author | Dag-Erling Smørgrav <des@FreeBSD.org> | 2000-05-26 12:56:53 +0000 |
|---|---|---|
| committer | Dag-Erling Smørgrav <des@FreeBSD.org> | 2000-05-26 12:56:53 +0000 |
| commit | d02e84a626a249fb34e969ab12415b9ee5f74a70 (patch) | |
| tree | f321f76ec21503310844fc301ce89f912de802e2 | |
| parent | c4de295680429c839cea7fd0a2543ff41163b76b (diff) | |
Notes
| -rw-r--r-- | lib/libfetch/ftp.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/libfetch/ftp.c b/lib/libfetch/ftp.c index 64feb378fc8b..a8a414693856 100644 --- a/lib/libfetch/ftp.c +++ b/lib/libfetch/ftp.c @@ -218,6 +218,10 @@ _ftp_transfer(int cd, char *oper, char *file, high = (flags && strchr(flags, 'h')); verbose = (flags && strchr(flags, 'v')); + /* passive mode */ + if (!pasv && (s = getenv("FTP_PASSIVE_MODE")) != NULL) + pasv = (strncasecmp(s, "no", 2) != 0); + /* change directory */ if (((s = strrchr(file, '/')) != NULL) && (s != file)) { *s = 0; |
