Correctly figure out that the remove cannot do passive mode.
PR: 6259 Reviewed & slightly modified by: phk Submitted by: Archie Cobbs <archie@whistle.com>
This commit is contained in:
parent
f901bc2795
commit
b7aac2f990
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user