From: foobar Date: Tue, 31 Oct 2000 00:30:37 +0000 (+0000) Subject: Both RETR and STOR have also 250 as possible return value X-Git-Tag: php-4.0.4RC3~425 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4c2abe7df49c8085cce38d197b778b998b936b61;p=php Both RETR and STOR have also 250 as possible return value --- diff --git a/ext/ftp/ftp.c b/ext/ftp/ftp.c index b81ff204e7..b2cf0d9fa5 100644 --- a/ext/ftp/ftp.c +++ b/ext/ftp/ftp.c @@ -543,7 +543,7 @@ ftp_get(ftpbuf_t *ftp, FILE *outfp, const char *path, ftptype_t type) 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 @@ ftp_put(ftpbuf_t *ftp, const char *path, FILE *infp, ftptype_t type) 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;