cvs: php4 /ext/ftp ftp.c
| From: | Jani Taskinen | Date: | Tue, 31 Oct 2000 00:30:37 +0000 |
| Subject: | cvs: php4 /ext/ftp ftp.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-2366@lists.php.net to get a copy of this message | ||
sniper Mon Oct 30 16:30:37 2000 EDT
Modified files:
/php4/ext/ftp ftp.c
Log:
Both RETR and STOR have also 250 as possible return value
Index: php4/ext/ftp/ftp.c
diff -u php4/ext/ftp/ftp.c:1.28 php4/ext/ftp/ftp.c:1.29
--- php4/ext/ftp/ftp.c:1.28 Mon Oct 30 16:00:26 2000
+++ php4/ext/ftp/ftp.c Mon Oct 30 16:30:37 2000
@@ -28,7 +28,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: ftp.c,v 1.28 2000/10/31 00:00:26 sniper Exp $ */
+/* $Id: ftp.c,v 1.29 2000/10/31 00:30:37 sniper Exp $ */
#include "php.h"
@@ -543,7 +543,7 @@
if (ferror(outfp))
goto bail;
- if (!ftp_getresp(ftp) || ftp->resp != 226)
+ if (!ftp_getresp(ftp) || (ftp->resp != 226 && ftp->resp != 250))
goto bail;
return 1;
@@ -606,7 +606,7 @@
data = data_close(data);
- if (!ftp_getresp(ftp) || ftp->resp != 226)
+ if (!ftp_getresp(ftp) || (ftp->resp != 226 && ftp->resp != 250))
goto bail;
return 1;