Mercurial > hg > nginx-quic
changeset 2181:774bef502c78
ignore NGX_EACCES error while directory test
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Sun, 17 Aug 2008 17:38:48 +0000 |
parents | 61a09532e310 |
children | 23309bcd9937 |
files | src/http/modules/ngx_http_index_module.c |
diffstat | 1 files changed, 13 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/http/modules/ngx_http_index_module.c +++ b/src/http/modules/ngx_http_index_module.c @@ -309,6 +309,19 @@ ngx_http_index_test_dir(ngx_http_request return ngx_http_index_error(r, clcf, dir.data, NGX_ENOENT); } + if (of.err == NGX_EACCES) { + + *last = c; + + /* + * ngx_http_index_test_dir() is called after the first index + * file testing has returned an error distinct from NGX_EACCES. + * This means that directory searching is allowed. + */ + + return NGX_OK; + } + ngx_log_error(NGX_LOG_CRIT, r->connection->log, of.err, ngx_open_file_n " \"%s\" failed", dir.data); }