summaryrefslogtreecommitdiffstats
path: root/lib/libftpio
diff options
context:
space:
mode:
authorbillf <billf@FreeBSD.org>2000-05-05 17:02:32 +0000
committerbillf <billf@FreeBSD.org>2000-05-05 17:02:32 +0000
commit357c0044c008a09222233e18374dd1ef4084fd54 (patch)
treeb0dce2f12268ba25866fa1e2e7bbad90673810cc /lib/libftpio
parentf5e4ff159a3113288a19a1f5968591592bcfd028 (diff)
downloadFreeBSD-src-357c0044c008a09222233e18374dd1ef4084fd54.zip
FreeBSD-src-357c0044c008a09222233e18374dd1ef4084fd54.tar.gz
Put the FTP_PASSIVE_MODE issue to rest once and for all.
Reviewed by: des Obtained from: FreeBSD's src/usr.bin/ftp/main.c
Diffstat (limited to 'lib/libftpio')
-rw-r--r--lib/libftpio/ftpio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libftpio/ftpio.c b/lib/libftpio/ftpio.c
index 155f954..ceb428c 100644
--- a/lib/libftpio/ftpio.c
+++ b/lib/libftpio/ftpio.c
@@ -500,7 +500,7 @@ check_passive(FILE *fp)
{
char *cp = getenv("FTP_PASSIVE_MODE");
- ftpPassive(fp, (cp && !strncmp(cp, "YES", 3)));
+ ftpPassive(fp, (cp && strncasecmp(cp, "no", 2)));
}
static void
OpenPOWER on IntegriCloud