comparison src/http/modules/ngx_http_autoindex_module.c @ 2371:b438ffe54e34

skip protected symlinks in autoindex
author Igor Sysoev <igor@sysoev.ru>
date Mon, 08 Dec 2008 14:05:21 +0000
parents 8e4b9d2acde8
children 8e720b7fe6d2
comparison
equal deleted inserted replaced
2370:44039da1fae8 2371:b438ffe54e34
297 err = ngx_errno; 297 err = ngx_errno;
298 298
299 if (err != NGX_ENOENT) { 299 if (err != NGX_ENOENT) {
300 ngx_log_error(NGX_LOG_CRIT, r->connection->log, err, 300 ngx_log_error(NGX_LOG_CRIT, r->connection->log, err,
301 ngx_de_info_n " \"%s\" failed", filename); 301 ngx_de_info_n " \"%s\" failed", filename);
302
303 if (err == NGX_EACCES) {
304 continue;
305 }
306
302 return ngx_http_autoindex_error(r, &dir, &path); 307 return ngx_http_autoindex_error(r, &dir, &path);
303 } 308 }
304 309
305 if (ngx_de_link_info(filename, &dir) == NGX_FILE_ERROR) { 310 if (ngx_de_link_info(filename, &dir) == NGX_FILE_ERROR) {
306 ngx_log_error(NGX_LOG_CRIT, r->connection->log, ngx_errno, 311 ngx_log_error(NGX_LOG_CRIT, r->connection->log, ngx_errno,