Skip to content

Commit

Permalink
changed the return code checker in the quote command send to only fail
Browse files Browse the repository at this point in the history
on >= 400 errors
  • Loading branch information
bagder committed Dec 16, 2000
1 parent 2fff6a4 commit 74d3541
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/ftp.c
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 74d3541

Please sign in to comment.