summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authordes <des@FreeBSD.org>2011-09-27 18:23:58 +0000
committerdes <des@FreeBSD.org>2011-09-27 18:23:58 +0000
commit23b1a7445907e5a1c17a8896effea103a9908fe1 (patch)
treefb9968fbbe66fec237550d4d40a8d05dc5d6fac6 /lib
parent49d59b07385eea8e7512006f40a73580d4cef33a (diff)
downloadFreeBSD-src-23b1a7445907e5a1c17a8896effea103a9908fe1.zip
FreeBSD-src-23b1a7445907e5a1c17a8896effea103a9908fe1.tar.gz
Long overdue: make passive mode the default for ftp.
Diffstat (limited to 'lib')
-rw-r--r--lib/libfetch/ftp.c4
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);
OpenPOWER on IntegriCloud