vquic: do not pass invalid mode flags to open() (Windows)

Follow-up to 82013066a6 #19647

Closes #19670
This commit is contained in:
Viktor Szakats 2025-11-24 14:43:49 +01:00
parent 3696ac4e29
commit fa1270a0d1
No known key found for this signature in database
GPG key ID: B5ABD165E2AEF201

View file

@ -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;
}