]> git.kaiwu.me - nginx.git/commitdiff
do not log misleading errno in "not a regular file" error
authorIgor Sysoev <igor@sysoev.ru>
Wed, 21 Apr 2010 16:01:52 +0000 (16:01 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Wed, 21 Apr 2010 16:01:52 +0000 (16:01 +0000)
src/http/modules/ngx_http_gzip_static_module.c
src/http/modules/ngx_http_static_module.c

index a928d16aeeaaa3264ba5d501066c38e41514496c..2098d8c438e1be42491bcf7384f64ece829a1a6b 100644 (file)
@@ -180,7 +180,7 @@ ngx_http_gzip_static_handler(ngx_http_request_t *r)
 #if !(NGX_WIN32) /* the not regular files are probably Unix specific */
 
     if (!of.is_file) {
-        ngx_log_error(NGX_LOG_CRIT, log, ngx_errno,
+        ngx_log_error(NGX_LOG_CRIT, log, 0,
                       "\"%s\" is not a regular file", path.data);
 
         return NGX_HTTP_NOT_FOUND;
index 6743e769d17a8229e4100619a6858bcac6cab2c2..3af97bacd99ecd48141092a72f87e6724cf539ae 100644 (file)
@@ -189,7 +189,7 @@ ngx_http_static_handler(ngx_http_request_t *r)
 #if !(NGX_WIN32) /* the not regular files are probably Unix specific */
 
     if (!of.is_file) {
-        ngx_log_error(NGX_LOG_CRIT, log, ngx_errno,
+        ngx_log_error(NGX_LOG_CRIT, log, 0,
                       "\"%s\" is not a regular file", path.data);
 
         return NGX_HTTP_NOT_FOUND;