From: Daniel Stenberg Date: Sat, 16 Dec 2000 10:36:08 +0000 (+0000) Subject: changed the return code checker in the quote command send to only fail X-Git-Tag: curl-7_5_2~30 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=74d35416a2ee4d0baa84e2b5daab2fc96dda5a58;p=thirdparty%2Fcurl.git changed the return code checker in the quote command send to only fail on >= 400 errors --- diff --git a/lib/ftp.c b/lib/ftp.c index 1d7b9c2845..705d090c88 100644 --- a/lib/ftp.c +++ b/lib/ftp.c @@ -535,7 +535,7 @@ CURLcode ftp_done(struct connectdata *conn) if(nread < 0) return CURLE_OPERATION_TIMEOUTED; - if (buf[0] != '2') { + if (ftpcode >= 400) { failf(data, "QUOT string not accepted: %s", qitem->data); return CURLE_FTP_QUOTE_ERROR; @@ -589,7 +589,7 @@ CURLcode _ftp(struct connectdata *conn) if(nread < 0) return CURLE_OPERATION_TIMEOUTED; - if (buf[0] != '2') { + if (ftpcode >= 400) { failf(data, "QUOT string not accepted: %s", qitem->data); return CURLE_FTP_QUOTE_ERROR;