← Commit list

e2d61a6b30

Viktor Szakats
Viktor Szakats
2026-01-06
SUCCESS Duration: 248s

Subject

curlx_win32_fopen: use `_fsopen()`/`_wfsopen()` with `_SH_DENYNO`

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

lib/curlx/fopen.c+2 -2
@@ -348,7 +348,7 @@ FILE *curlx_win32_fopen(const char *filename, const char *mode)
target = fixed;
else
target = filename_w;
- errno = _wfopen_s(&result, target, mode_w);
+ result = _wfsopen(target, mode_w, _SH_DENYNO);
}
else
/* !checksrc! disable ERRNOVAR 1 */
@@ -360,7 +360,7 @@ FILE *curlx_win32_fopen(const char *filename, const char *mode)
target = fixed;
else
target = filename;
- errno = fopen_s(&result, target, mode);
+ result = _fsopen(target, mode, _SH_DENYNO);
#endif
CURLX_FREE(fixed);