From: foobar Date: Fri, 27 Oct 2000 20:53:04 +0000 (+0000) Subject: Fixed PR: 6730. And it is mentioned also in RFC 959 to be this way. X-Git-Tag: php-4.0.4RC3~484 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b45d265c54aaff0da62f8966a79afc5a4f116e6e;p=php Fixed PR: 6730. And it is mentioned also in RFC 959 to be this way. --- diff --git a/ext/ftp/ftp.c b/ext/ftp/ftp.c index b2a091a710..11966750bb 100644 --- a/ext/ftp/ftp.c +++ b/ext/ftp/ftp.c @@ -1204,7 +1204,7 @@ ftp_genlist(ftpbuf_t *ftp, const char *cmd, const char *path) fclose(tmpfp); - if (!ftp_getresp(ftp) || ftp->resp != 226) { + if (!ftp_getresp(ftp) || ftp->resp != 226 || ftp->resp != 250) { free(ret); return NULL; }