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:
Poul-Henning Kamp 1998-04-11 07:28:53 +00:00
parent f901bc2795
commit b7aac2f990
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=35126

View File

@ -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;
}