mirror of
https://github.com/curl/curl.git
synced 2026-07-24 04:17:18 +03:00
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.
This commit is contained in:
parent
bac17ab7d8
commit
d52ed3fff2
2 changed files with 12 additions and 1 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue