aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2005-11-14 00:18:12 +0000
committerDaniel Stenberg <daniel@haxx.se>2005-11-14 00:18:12 +0000
commitd52ed3fff2e138d2c4d455dffe5888d70441ffb3 (patch)
treedd02fc2bba61969114529a078592828c705df393 /lib
parentbac17ab7d826d6a19e72df0a162ca87788dd4d15 (diff)
Jan Kunder's debian bug report
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=338680 identified a weird error message for when you try to upload a file and the requested directory doesn't exist on the target server.
Diffstat (limited to 'lib')
-rw-r--r--lib/ftp.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/ftp.c b/lib/ftp.c
index a416dbe9a..fe86ba392 100644
--- a/lib/ftp.c
+++ b/lib/ftp.c
@@ -2526,9 +2526,11 @@ static CURLcode ftp_statemach_act(struct connectdata *conn)
NBFTPSENDF(conn, "MKD %s", ftp->dirs[ftp->count1 - 1]);
state(conn, FTP_MKD);
}
- else
+ else {
/* return failure */
+ failf(data, "Server denied you to change to the given directory");
return CURLE_FTP_ACCESS_DENIED;
+ }
}
else {
/* success */