]> granicus.if.org Git - curl/commitdiff
changed the return code checker in the quote command send to only fail
authorDaniel Stenberg <daniel@haxx.se>
Sat, 16 Dec 2000 10:36:08 +0000 (10:36 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Sat, 16 Dec 2000 10:36:08 +0000 (10:36 +0000)
on >= 400 errors

lib/ftp.c

index 1d7b9c28451a43d73bb826c29e2f43f6b3980e5e..705d090c88ac77f0d02e3a43529e7d5292e42f3e 100644 (file)
--- 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;