summaryrefslogtreecommitdiffhomepage
path: root/src/http/modules/ngx_http_gzip_static_module.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2010-06-07 12:08:44 +0000
committerIgor Sysoev <igor@sysoev.ru>2010-06-07 12:08:44 +0000
commit9d4085af44e8eb9c18dbaa017b6deb2bb11644a2 (patch)
tree58e5c57912ce874cd1e43e7ca25e6fa96d8a6999 /src/http/modules/ngx_http_gzip_static_module.c
parent400683ac9102ee18564bb6eff0037e710fb48d9f (diff)
downloadnginx-9d4085af44e8eb9c18dbaa017b6deb2bb11644a2.tar.gz
nginx-9d4085af44e8eb9c18dbaa017b6deb2bb11644a2.tar.bz2
merge r3498, r3499:
opening files fixes: *) use non-blocking open() not to hang on FIFO files, etc. *) do not log misleading errno in "not a regular file" error
Diffstat (limited to 'src/http/modules/ngx_http_gzip_static_module.c')
-rw-r--r--src/http/modules/ngx_http_gzip_static_module.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/http/modules/ngx_http_gzip_static_module.c b/src/http/modules/ngx_http_gzip_static_module.c
index 29874a33a..6ba3cd82b 100644
--- a/src/http/modules/ngx_http_gzip_static_module.c
+++ b/src/http/modules/ngx_http_gzip_static_module.c
@@ -179,7 +179,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;