comparison src/os/win32/ngx_files.h @ 8133:e0f385521c79

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.
author Maxim Dounin <mdounin@mdounin.ru>
date Thu, 23 Feb 2023 20:49:45 +0300
parents 8ea2e052feb4
children 7d60e4584d9e
comparison
equal deleted inserted replaced
8132:8ea2e052feb4 8133:e0f385521c79
200 200
201 ngx_int_t ngx_close_dir(ngx_dir_t *dir); 201 ngx_int_t ngx_close_dir(ngx_dir_t *dir);
202 #define ngx_close_dir_n "FindClose()" 202 #define ngx_close_dir_n "FindClose()"
203 203
204 204
205 #define ngx_create_dir(name, access) CreateDirectory((const char *) name, NULL) 205 ngx_int_t ngx_create_dir(u_char *name, ngx_uint_t access);
206 #define ngx_create_dir_n "CreateDirectory()" 206 #define ngx_create_dir_n "CreateDirectory()"
207 207
208 208
209 #define ngx_delete_dir(name) RemoveDirectory((const char *) name) 209 #define ngx_delete_dir(name) RemoveDirectory((const char *) name)
210 #define ngx_delete_dir_n "RemoveDirectory()" 210 #define ngx_delete_dir_n "RemoveDirectory()"