diff options
-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); |