diff options
author | foobar <sniper@php.net> | 2000-10-31 00:30:37 +0000 |
---|---|---|
committer | foobar <sniper@php.net> | 2000-10-31 00:30:37 +0000 |
commit | 4c2abe7df49c8085cce38d197b778b998b936b61 (patch) | |
tree | de14d3aa9bcbfafe0547f6c17b96fde77e802556 /ext/ftp/ftp.c | |
parent | 55ccb5a35b04bce8566ff9d29c263726f60c8926 (diff) | |
download | php-git-4c2abe7df49c8085cce38d197b778b998b936b61.tar.gz |
Both RETR and STOR have also 250 as possible return value
Diffstat (limited to 'ext/ftp/ftp.c')
-rw-r--r-- | ext/ftp/ftp.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; |