diff options
author | jkh <jkh@FreeBSD.org> | 2000-04-23 21:23:34 +0000 |
---|---|---|
committer | jkh <jkh@FreeBSD.org> | 2000-04-23 21:23:34 +0000 |
commit | a43b0da3993c3b4eaec31877ecc3c200f3613d09 (patch) | |
tree | abf75623e2a1122fea3e46977c4e64be264dc33a /lib/libftpio | |
parent | 4dc20c0e9ec094ad08eaaa8a1f51236dfe31b1d0 (diff) | |
download | FreeBSD-src-a43b0da3993c3b4eaec31877ecc3c200f3613d09.zip FreeBSD-src-a43b0da3993c3b4eaec31877ecc3c200f3613d09.tar.gz |
Make FTP_PASSIVE_MODE check more specific.
Suggested by: Eric D. Futch <efutch@nyct.net>
Diffstat (limited to 'lib/libftpio')
-rw-r--r-- | lib/libftpio/ftpio.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/libftpio/ftpio.c b/lib/libftpio/ftpio.c index 35f2b15..155f954 100644 --- a/lib/libftpio/ftpio.c +++ b/lib/libftpio/ftpio.c @@ -498,8 +498,9 @@ ftp_close_method(void *n) static void check_passive(FILE *fp) { - if (getenv("FTP_PASSIVE_MODE")) - ftpPassive(fp, TRUE); + char *cp = getenv("FTP_PASSIVE_MODE"); + + ftpPassive(fp, (cp && !strncmp(cp, "YES", 3))); } static void |