]> git.kaiwu.me - nginx.git/commit
Win32: non-ASCII directory names support in ngx_create_dir().
authorMaxim Dounin <mdounin@mdounin.ru>
Thu, 23 Feb 2023 17:49:45 +0000 (20:49 +0300)
committerMaxim Dounin <mdounin@mdounin.ru>
Thu, 23 Feb 2023 17:49:45 +0000 (20:49 +0300)
commit89719dc5c1163a90b789cbac87845f7393655b70
treee5a3a36130cb8c8bd20030ea13f63dd38888e1de
parent1edc23cc84a62afdec2286235286a47e1259ef11
Win32: non-ASCII directory names support in ngx_create_dir().

This makes it possible to create directories under prefix with non-ASCII
characters, as well as makes it possible to create directories with non-ASCII
characters when using the dav module (ticket #1433).

To ensure that the dav module operations are restricted similarly to
other file operations (in particular, short names are not allowed), the
ngx_win32_check_filename() function is used.  It improved to support
checking of just dirname, and now can be used to check paths when creating
files or directories.
src/os/win32/ngx_files.c
src/os/win32/ngx_files.h