summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2009-04-01 16:02:24 +0000
committerIgor Sysoev <igor@sysoev.ru>2009-04-01 16:02:24 +0000
commit9e534e07747a73b22fd55fe89fcb5f087cc156a5 (patch)
tree56c5a457a9283e0d233eac33eff3161f2539c948
parentebb8d120d592158ffb1fdcbf1ff61c6778f3dc5e (diff)
downloadnginx-9e534e07747a73b22fd55fe89fcb5f087cc156a5.tar.gz
r2372 merge:
skip protected symlinks in autoindex
-rw-r--r--src/http/modules/ngx_http_autoindex_module.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/http/modules/ngx_http_autoindex_module.c b/src/http/modules/ngx_http_autoindex_module.c
index 0ff500998..d4d9ac3b2 100644
--- a/src/http/modules/ngx_http_autoindex_module.c
+++ b/src/http/modules/ngx_http_autoindex_module.c
@@ -299,6 +299,11 @@ ngx_http_autoindex_handler(ngx_http_request_t *r)
if (err != NGX_ENOENT) {
ngx_log_error(NGX_LOG_CRIT, r->connection->log, err,
ngx_de_info_n " \"%s\" failed", filename);
+
+ if (err == NGX_EACCES) {
+ continue;
+ }
+
return ngx_http_autoindex_error(r, &dir, &path);
}