]> git.kaiwu.me - nginx.git/commit
Win32: removed NGX_DIR_MASK concept.
authorMaxim Dounin <mdounin@mdounin.ru>
Mon, 24 Dec 2018 18:07:05 +0000 (21:07 +0300)
committerMaxim Dounin <mdounin@mdounin.ru>
Mon, 24 Dec 2018 18:07:05 +0000 (21:07 +0300)
commitaa741f87273f2137d9a52080593c5fe6f1d1b0ea
tree910786fc8f33014c148afcce1246214d3f1317e2
parent499bb2655ee16e4659d571b413b1ea54fd19dcd1
Win32: removed NGX_DIR_MASK concept.

Previous interface of ngx_open_dir() assumed that passed directory name
has a room for NGX_DIR_MASK at the end (NGX_DIR_MASK_LEN bytes).  While all
direct users of ngx_dir_open() followed this interface, this also implied
similar requirements for indirect uses - in particular, via ngx_walk_tree().

Currently none of ngx_walk_tree() uses provides appropriate space, and
fixing this does not look like a right way to go.  Instead, ngx_dir_open()
interface was changed to not require any additional space and use
appropriate allocations instead.
src/core/ngx_file.c
src/http/modules/ngx_http_autoindex_module.c
src/http/modules/ngx_http_random_index_module.c
src/os/unix/ngx_files.h
src/os/win32/ngx_files.c
src/os/win32/ngx_files.h