aboutsummaryrefslogtreecommitdiff
path: root/lib/libfetch/ftp.c
diff options
context:
space:
mode:
authorDag-Erling Smørgrav <des@FreeBSD.org>2011-09-27 18:23:58 +0000
committerDag-Erling Smørgrav <des@FreeBSD.org>2011-09-27 18:23:58 +0000
commit4f411f86018b0ad1e30730aa7f5acaa194280263 (patch)
treefb9968fbbe66fec237550d4d40a8d05dc5d6fac6 /lib/libfetch/ftp.c
parent29da75477bd86b4efa5afb5fe9c131ad86099bf7 (diff)
Notes
Diffstat (limited to 'lib/libfetch/ftp.c')
-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 04ae07e9e1892..75af7a44affeb 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);