mirror of
https://github.com/moparisthebest/curl
synced 2024-11-10 11:35:07 -05:00
SFTP mkdir: use correct permission
When sending quote command to a SFTP server and 'mkdir' was used, it would send fixed permissions and not use the CURLOPT_NEW_DIRECTORY_PERMS as it should. Reported by: Armel Patch by: Armel Bug: http://curl.haxx.se/mail/lib-2011-12/0249.html
This commit is contained in:
parent
f8cd217f04
commit
5ac9ec7205
@ -1400,7 +1400,7 @@ static CURLcode ssh_statemach_act(struct connectdata *conn, bool *block)
|
|||||||
case SSH_SFTP_QUOTE_MKDIR:
|
case SSH_SFTP_QUOTE_MKDIR:
|
||||||
rc = libssh2_sftp_mkdir_ex(sshc->sftp_session, sshc->quote_path1,
|
rc = libssh2_sftp_mkdir_ex(sshc->sftp_session, sshc->quote_path1,
|
||||||
(unsigned int)strlen(sshc->quote_path1),
|
(unsigned int)strlen(sshc->quote_path1),
|
||||||
0755);
|
data->set.new_directory_perms);
|
||||||
if(rc == LIBSSH2_ERROR_EAGAIN) {
|
if(rc == LIBSSH2_ERROR_EAGAIN) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user