diff options
| author | Sergey Kandaurov <pluknet@nginx.com> | 2013-07-30 11:43:21 +0400 |
|---|---|---|
| committer | Sergey Kandaurov <pluknet@nginx.com> | 2013-07-30 11:43:21 +0400 |
| commit | 2b2def789199b1fc661fbac38ff6bf7fdccb7bbb (patch) | |
| tree | 64c8de640346d21d7a0ec072737529dec09a372e /src/http | |
| parent | eb3fed9338768a152d208cf15f78eb60f2c0b6d2 (diff) | |
| download | nginx-2b2def789199b1fc661fbac38ff6bf7fdccb7bbb.tar.gz nginx-2b2def789199b1fc661fbac38ff6bf7fdccb7bbb.tar.bz2 | |
Autoindex: improved ngx_de_info() error handling.
This allows to build a directory listing whenever a loop exists in symbolic
link resolution of the path argument.
Diffstat (limited to 'src/http')
| -rw-r--r-- | src/http/modules/ngx_http_autoindex_module.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/http/modules/ngx_http_autoindex_module.c b/src/http/modules/ngx_http_autoindex_module.c index e21d8d73e..221455120 100644 --- a/src/http/modules/ngx_http_autoindex_module.c +++ b/src/http/modules/ngx_http_autoindex_module.c @@ -304,7 +304,7 @@ ngx_http_autoindex_handler(ngx_http_request_t *r) if (ngx_de_info(filename, &dir) == NGX_FILE_ERROR) { err = ngx_errno; - if (err != NGX_ENOENT) { + if (err != NGX_ENOENT && err != NGX_ELOOP) { ngx_log_error(NGX_LOG_CRIT, r->connection->log, err, ngx_de_info_n " \"%s\" failed", filename); |
