comparison src/http/modules/ngx_http_autoindex_module.c @ 2642:976e000dbb9f stable-0.6

r2372 merge: skip protected symlinks in autoindex
author Igor Sysoev <igor@sysoev.ru>
date Wed, 01 Apr 2009 16:02:24 +0000
parents d7d3a72c07d8
children
comparison
equal deleted inserted replaced
2641:3a79007edf41 2642:976e000dbb9f
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,