From 4c2abe7df49c8085cce38d197b778b998b936b61 Mon Sep 17 00:00:00 2001 From: foobar Date: Tue, 31 Oct 2000 00:30:37 +0000 Subject: [PATCH] Both RETR and STOR have also 250 as possible return value --- ext/ftp/ftp.c | 4 ++-- 1 file 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; -- 2.50.1