]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
vquic: do not pass invalid mode flags to `open()` (Windows)
authorViktor Szakats <commit@vsz.me>
Mon, 24 Nov 2025 13:43:49 +0000 (14:43 +0100)
committerViktor Szakats <commit@vsz.me>
Mon, 24 Nov 2025 21:33:21 +0000 (22:33 +0100)
Follow-up to 82013066a6149aa906b1fda3f8f1f27bd272a6c2 #19647

Closes #19670

lib/vquic/vquic.c

index 539d9bfeae36f8932e5276d5958006f02ab62bcd..562a99e4fee03de941547dcfc014a1d360c71eb7 100644 (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;
     }