diff options
author | Maxim Dounin <mdounin@mdounin.ru> | 2023-02-23 20:49:45 +0300 |
---|---|---|
committer | Maxim Dounin <mdounin@mdounin.ru> | 2023-02-23 20:49:45 +0300 |
commit | 89719dc5c1163a90b789cbac87845f7393655b70 (patch) | |
tree | e5a3a36130cb8c8bd20030ea13f63dd38888e1de /src/os/win32/ngx_files.h | |
parent | 1edc23cc84a62afdec2286235286a47e1259ef11 (diff) | |
download | nginx-89719dc5c1163a90b789cbac87845f7393655b70.tar.gz nginx-89719dc5c1163a90b789cbac87845f7393655b70.zip |
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.
Diffstat (limited to 'src/os/win32/ngx_files.h')
-rw-r--r-- | src/os/win32/ngx_files.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/os/win32/ngx_files.h b/src/os/win32/ngx_files.h index bc648e4c9..10a388942 100644 --- a/src/os/win32/ngx_files.h +++ b/src/os/win32/ngx_files.h @@ -202,7 +202,7 @@ ngx_int_t ngx_close_dir(ngx_dir_t *dir); #define ngx_close_dir_n "FindClose()" -#define ngx_create_dir(name, access) CreateDirectory((const char *) name, NULL) +ngx_int_t ngx_create_dir(u_char *name, ngx_uint_t access); #define ngx_create_dir_n "CreateDirectory()" |