cvs: php4 /ext/ftp ftp.c
| From: | Jani Taskinen | Date: | Fri, 27 Oct 2000 20:53:04 +0000 |
| Subject: | cvs: php4 /ext/ftp ftp.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-2318@lists.php.net to get a copy of this message | ||
sniper Fri Oct 27 13:53:04 2000 EDT
Modified files:
/php4/ext/ftp ftp.c
Log:
Fixed PR: 6730. And it is mentioned also in RFC 959 to be this way.
Index: php4/ext/ftp/ftp.c
diff -u php4/ext/ftp/ftp.c:1.26 php4/ext/ftp/ftp.c:1.27
--- php4/ext/ftp/ftp.c:1.26 Fri Oct 27 13:47:36 2000
+++ php4/ext/ftp/ftp.c Fri Oct 27 13:53:04 2000
@@ -28,7 +28,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: ftp.c,v 1.26 2000/10/27 20:47:36 sniper Exp $ */
+/* $Id: ftp.c,v 1.27 2000/10/27 20:53:04 sniper Exp $ */
#include "php.h"
@@ -1204,7 +1204,7 @@
fclose(tmpfp);
- if (!ftp_getresp(ftp) || ftp->resp != 226) {
+ if (!ftp_getresp(ftp) || ftp->resp != 226 || ftp->resp != 250) {
free(ret);
return NULL;
}