diff options
author | Glenn Strauss <gstrauss@gluelogic.com> | 2023-02-15 19:32:37 -0500 |
---|---|---|
committer | Glenn Strauss <gstrauss@gluelogic.com> | 2023-05-03 23:11:34 -0400 |
commit | 05b3d156c31af25bc08a6a7117899e39e337b48f (patch) | |
tree | d977efa7a2d7be78eb03f1972bf1fcee779809e0 /src/fdevent_win32.c | |
parent | 3f4e686cdcb2932057b4108c702bbb4aa4018846 (diff) | |
download | lighttpd-git-05b3d156c31af25bc08a6a7117899e39e337b48f.tar.gz |
[core] _WIN32 custom fs funcs on UTF-8 paths
open(), stat(), mkdir() on UTF-8 paths
lighttpd provides large file support and 64-bit time,
so provide override to use _stati64() (and _wstati64())
Additionally, provide custom function to support stat on UTF-8 path,
which must first be converted to wide-char and _wstati64(),
since _stati64() is naive and does not properly support UTF-8.
Diffstat (limited to 'src/fdevent_win32.c')
-rw-r--r-- | src/fdevent_win32.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/fdevent_win32.c b/src/fdevent_win32.c index 00b37cb0..da69433d 100644 --- a/src/fdevent_win32.c +++ b/src/fdevent_win32.c @@ -776,11 +776,12 @@ int fdevent_dup_cloexec (int fd) #include <fcntl.h> +#include "fs_win32.h" int fdevent_open_cloexec (const char *pathname, int symlinks, int flags, mode_t mode) { UNUSED(symlinks); - return _open(pathname, flags | _O_BINARY | _O_NOINHERIT, mode); + return fs_win32_openUTF8(pathname, flags | _O_BINARY | _O_NOINHERIT, mode); } |