comparison src/http/modules/ngx_http_gzip_static_module.c @ 3498:9f20a6e758c3

do not log misleading errno in "not a regular file" error
author Igor Sysoev <igor@sysoev.ru>
date Wed, 21 Apr 2010 16:01:52 +0000
parents 118169a8ec92
children dd1570b6f237
comparison
equal deleted inserted replaced
3497:ac281bc4c187 3498:9f20a6e758c3
178 } 178 }
179 179
180 #if !(NGX_WIN32) /* the not regular files are probably Unix specific */ 180 #if !(NGX_WIN32) /* the not regular files are probably Unix specific */
181 181
182 if (!of.is_file) { 182 if (!of.is_file) {
183 ngx_log_error(NGX_LOG_CRIT, log, ngx_errno, 183 ngx_log_error(NGX_LOG_CRIT, log, 0,
184 "\"%s\" is not a regular file", path.data); 184 "\"%s\" is not a regular file", path.data);
185 185
186 return NGX_HTTP_NOT_FOUND; 186 return NGX_HTTP_NOT_FOUND;
187 } 187 }
188 188