From 64dd9c76563269ca7a0aec0642b396e83b16c8f6 Mon Sep 17 00:00:00 2001 From: Gisle Vanem Date: Wed, 9 Feb 2005 13:59:40 +0000 Subject: [PATCH] Handle CURLE_LOGIN_DENIED in strerror.c. For ftp only? --- lib/ftp.c | 2 +- lib/strerror.c | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/ftp.c b/lib/ftp.c index 6dfbdc943..72f55ebed 100644 --- a/lib/ftp.c +++ b/lib/ftp.c @@ -2216,7 +2216,7 @@ static CURLcode ftp_state_user_resp(struct connectdata *conn, state(conn, FTP_ACCT); } else { - failf(data, "ACCT requested by none available"); + failf(data, "ACCT requested but none available"); result = CURLE_LOGIN_DENIED; } } diff --git a/lib/strerror.c b/lib/strerror.c index ae618c6e4..0f0c0fff2 100644 --- a/lib/strerror.c +++ b/lib/strerror.c @@ -236,6 +236,9 @@ curl_easy_strerror(CURLcode error) case CURLE_SEND_FAIL_REWIND: return "Send failed since rewinding of the data stream failed"; + case CURLE_LOGIN_DENIED: + return "FTP: login denied";; + case CURLE_URL_MALFORMAT_USER: /* not used by current libcurl */ case CURLE_MALFORMAT_USER: /* not used by current libcurl */ case CURLE_BAD_CALLING_ORDER: /* not used by current libcurl */