]> git.kaiwu.me - nginx.git/commitdiff
skip protected symlinks in autoindex
authorIgor Sysoev <igor@sysoev.ru>
Mon, 8 Dec 2008 14:05:21 +0000 (14:05 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Mon, 8 Dec 2008 14:05:21 +0000 (14:05 +0000)
src/http/modules/ngx_http_autoindex_module.c

index 86b7c0b30efcce59a3849bfb95ef7daadd8dbe5b..c8137ad687d06f4362e6ba8cb9802db61defd14a 100644 (file)
@@ -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);
                 }