diff options
author | billf <billf@FreeBSD.org> | 2000-05-05 17:02:32 +0000 |
---|---|---|
committer | billf <billf@FreeBSD.org> | 2000-05-05 17:02:32 +0000 |
commit | 357c0044c008a09222233e18374dd1ef4084fd54 (patch) | |
tree | b0dce2f12268ba25866fa1e2e7bbad90673810cc /lib/libftpio | |
parent | f5e4ff159a3113288a19a1f5968591592bcfd028 (diff) | |
download | FreeBSD-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.c | 2 |
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 |