From b7aac2f9902c1c030f6a01cba7874ef78f3e2205 Mon Sep 17 00:00:00 2001 From: Poul-Henning Kamp Date: Sat, 11 Apr 1998 07:28:53 +0000 Subject: [PATCH] Correctly figure out that the remove cannot do passive mode. PR: 6259 Reviewed & slightly modified by: phk Submitted by: Archie Cobbs --- lib/libftpio/ftpio.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/libftpio/ftpio.c b/lib/libftpio/ftpio.c index 877896c47735..23cc5d2cb298 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; }