]> git.kaiwu.me - nginx.git/commitdiff
r2372 merge:
authorIgor Sysoev <igor@sysoev.ru>
Wed, 1 Apr 2009 16:02:24 +0000 (16:02 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Wed, 1 Apr 2009 16:02:24 +0000 (16:02 +0000)
skip protected symlinks in autoindex

src/http/modules/ngx_http_autoindex_module.c

index 0ff5009987c684da4a55c20acc4b3579540466f5..d4d9ac3b283479c40c7ff9776b88bf9b06bc8c80 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);
                 }