From 74d35416a2ee4d0baa84e2b5daab2fc96dda5a58 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Sat, 16 Dec 2000 10:36:08 +0000 Subject: changed the return code checker in the quote command send to only fail on >= 400 errors --- lib/ftp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/ftp.c b/lib/ftp.c index 1d7b9c284..705d090c8 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; -- cgit v1.2.3