diff options
author | phk <phk@FreeBSD.org> | 1998-04-11 07:28:53 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 1998-04-11 07:28:53 +0000 |
commit | 1f2643f52063cd57942ba1831d284a46512f6233 (patch) | |
tree | b2a581969a48efc35bbebee97b9567533e80f893 /lib/libftpio | |
parent | 4c358b50ecd1504c9834001ecd5ea5046a375942 (diff) | |
download | FreeBSD-src-1f2643f52063cd57942ba1831d284a46512f6233.zip FreeBSD-src-1f2643f52063cd57942ba1831d284a46512f6233.tar.gz |
Correctly figure out that the remove cannot do passive mode.
PR: 6259
Reviewed & slightly modified by: phk
Submitted by: Archie Cobbs <archie@whistle.com>
Diffstat (limited to 'lib/libftpio')
-rw-r--r-- | lib/libftpio/ftpio.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/libftpio/ftpio.c b/lib/libftpio/ftpio.c index 877896c..23cc5d2 100644 --- a/lib/libftpio/ftpio.c +++ b/lib/libftpio/ftpio.c @@ -14,7 +14,7 @@ * Turned inside out. Now returns xfers as new file ids, not as a special * `state' of FTP_t * - * $Id: ftpio.c,v 1.28 1997/10/02 23:26:03 fenner Exp $ + * $Id: ftpio.c,v 1.29 1997/12/20 04:06:05 jb Exp $ * */ @@ -326,6 +326,8 @@ ftpPassive(FILE *fp, int st) i = cmd(ftp, "PASV"); if (i < 0) return i; + if (i != FTP_PASSIVE_HAPPY) + return FAILURE; ftp->is_passive = !ftp->is_passive; return SUCCESS; } |