mirror of
https://github.com/curl/curl.git
synced 2025-03-07 15:27:17 +08:00
curl: set CURLOPT_NEW_FILE_PERMS if requested
The --create-file-mode code logic accepted the value but never actually
passed it on to libcurl!
Follow-up to a7696c7343
(shipped in 7.75.0)
Reported-by: Johannes Lesr
Fixes #6657
Closes #6666
This commit is contained in:
parent
15bc86df33
commit
40f3c18e6a
@ -2001,6 +2001,9 @@ static CURLcode single_transfer(struct GlobalConfig *global,
|
||||
if(config->ftp_pret)
|
||||
my_setopt(curl, CURLOPT_FTP_USE_PRET, 1L);
|
||||
|
||||
if(config->create_file_mode)
|
||||
my_setopt(curl, CURLOPT_NEW_FILE_PERMS, config->create_file_mode);
|
||||
|
||||
if(config->proto_present)
|
||||
my_setopt_flags(curl, CURLOPT_PROTOCOLS, config->proto);
|
||||
if(config->proto_redir_present)
|
||||
|
Loading…
Reference in New Issue
Block a user