diff options
author | des <des@FreeBSD.org> | 2011-09-27 18:23:58 +0000 |
---|---|---|
committer | des <des@FreeBSD.org> | 2011-09-27 18:23:58 +0000 |
commit | 23b1a7445907e5a1c17a8896effea103a9908fe1 (patch) | |
tree | fb9968fbbe66fec237550d4d40a8d05dc5d6fac6 /lib/libfetch | |
parent | 49d59b07385eea8e7512006f40a73580d4cef33a (diff) | |
download | FreeBSD-src-23b1a7445907e5a1c17a8896effea103a9908fe1.zip FreeBSD-src-23b1a7445907e5a1c17a8896effea103a9908fe1.tar.gz |
Long overdue: make passive mode the default for ftp.
Diffstat (limited to 'lib/libfetch')
-rw-r--r-- | lib/libfetch/ftp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libfetch/ftp.c b/lib/libfetch/ftp.c index 04ae07e..75af7a4 100644 --- a/lib/libfetch/ftp.c +++ b/lib/libfetch/ftp.c @@ -638,8 +638,8 @@ ftp_transfer(conn_t *conn, const char *oper, const char *file, /* passive mode */ if (!pasv) - pasv = ((s = getenv("FTP_PASSIVE_MODE")) != NULL && - strncasecmp(s, "no", 2) != 0); + pasv = ((s = getenv("FTP_PASSIVE_MODE")) == NULL || + strncasecmp(s, "no", 2) == 0); /* isolate filename */ filename = ftp_filename(file, &filenamelen, &type); |