]> git.kaiwu.me - nginx.git/commitdiff
low ENAMETOOLONG logging level
authorIgor Sysoev <igor@sysoev.ru>
Fri, 25 Sep 2009 09:13:08 +0000 (09:13 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Fri, 25 Sep 2009 09:13:08 +0000 (09:13 +0000)
src/http/modules/ngx_http_index_module.c
src/http/ngx_http_core_module.c
src/http/ngx_http_script.c

index d94fc118ca49f12ceef6b724dd2a9b46be906831..b58aa97c2ff66e1fcca6e50e8440acb2987674c6 100644 (file)
@@ -222,7 +222,10 @@ ngx_http_index_handler(ngx_http_request_t *r)
                 return NGX_HTTP_INTERNAL_SERVER_ERROR;
             }
 
-            if (of.err == NGX_ENOTDIR || of.err == NGX_EACCES) {
+            if (of.err == NGX_ENOTDIR
+                || of.err == NGX_ENAMETOOLONG
+                || of.err == NGX_EACCES)
+            {
                 return ngx_http_index_error(r, clcf, path.data, of.err);
             }
 
index 9af59b160647d85217cf8cf8daedd89fe6a783b5..a671e2eed5674ce02fd1d778a1d50cbfd7d60079 100644 (file)
@@ -1233,7 +1233,10 @@ ngx_http_core_try_files_phase(ngx_http_request_t *r,
         if (ngx_open_cached_file(clcf->open_file_cache, &path, &of, r->pool)
             != NGX_OK)
         {
-            if (of.err != NGX_ENOENT && of.err != NGX_ENOTDIR) {
+            if (of.err != NGX_ENOENT
+                && of.err != NGX_ENOTDIR
+                && of.err != NGX_ENAMETOOLONG)
+            {
                 ngx_log_error(NGX_LOG_CRIT, r->connection->log, of.err,
                               "%s \"%s\" failed", of.failed, path.data);
             }
index ad9d88b4051c575c8b04662955bb5ea8cbae7c69..a92b1995af19e2e10e99ab61eb5cf2aabd101a1a 100644 (file)
@@ -1417,7 +1417,10 @@ ngx_http_script_file_code(ngx_http_script_engine_t *e)
     if (ngx_open_cached_file(clcf->open_file_cache, &path, &of, r->pool)
         != NGX_OK)
     {
-        if (of.err != NGX_ENOENT && of.err != NGX_ENOTDIR) {
+        if (of.err != NGX_ENOENT
+            && of.err != NGX_ENOTDIR
+            && of.err != NGX_ENAMETOOLONG)
+        {
             ngx_log_error(NGX_LOG_CRIT, r->connection->log, of.err,
                           "%s \"%s\" failed", of.failed, value->data);
         }