Klaus Demo nginx / e003988
do not log misleading errno in "not a regular file" error Igor Sysoev 12 years ago
2 changed file(s) with 2 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
179179 #if !(NGX_WIN32) /* the not regular files are probably Unix specific */
180180
181181 if (!of.is_file) {
182 ngx_log_error(NGX_LOG_CRIT, log, ngx_errno,
182 ngx_log_error(NGX_LOG_CRIT, log, 0,
183183 "\"%s\" is not a regular file", path.data);
184184
185185 return NGX_HTTP_NOT_FOUND;
188188 #if !(NGX_WIN32) /* the not regular files are probably Unix specific */
189189
190190 if (!of.is_file) {
191 ngx_log_error(NGX_LOG_CRIT, log, ngx_errno,
191 ngx_log_error(NGX_LOG_CRIT, log, 0,
192192 "\"%s\" is not a regular file", path.data);
193193
194194 return NGX_HTTP_NOT_FOUND;