mirror of
https://github.com/curl/curl.git
synced 2026-05-30 08:47:28 +03:00
vquic: do not pass invalid mode flags to open() (Windows)
Follow-up to 82013066a6 #19647
Closes #19670
This commit is contained in:
parent
3696ac4e29
commit
fa1270a0d1
1 changed files with 5 additions and 1 deletions
|
|
@ -665,7 +665,11 @@ CURLcode Curl_qlogdir(struct Curl_easy *data,
|
|||
if(!result) {
|
||||
int qlogfd = curlx_open(curlx_dyn_ptr(&fname),
|
||||
O_WRONLY | O_CREAT | CURL_O_BINARY,
|
||||
data->set.new_file_perms);
|
||||
data->set.new_file_perms
|
||||
#ifdef _WIN32
|
||||
& (_S_IREAD | _S_IWRITE)
|
||||
#endif
|
||||
);
|
||||
if(qlogfd != -1)
|
||||
*qlogfdp = qlogfd;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue