aboutsummaryrefslogtreecommitdiff
path: root/lib/ftp.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ftp.c')
-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 */