comparison src/http/modules/ngx_http_gzip_static_module.c @ 3595:8944c3e318ab stable-0.7

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
author Igor Sysoev <igor@sysoev.ru>
date Mon, 07 Jun 2010 12:08:44 +0000
parents b0fbe6ab9ebe
children 8152369f7037
comparison
equal deleted inserted replaced
3594:8a5106c2a377 3595:8944c3e318ab
177 } 177 }
178 178
179 #if !(NGX_WIN32) /* the not regular files are probably Unix specific */ 179 #if !(NGX_WIN32) /* the not regular files are probably Unix specific */
180 180
181 if (!of.is_file) { 181 if (!of.is_file) {
182 ngx_log_error(NGX_LOG_CRIT, log, ngx_errno, 182 ngx_log_error(NGX_LOG_CRIT, log, 0,
183 "\"%s\" is not a regular file", path.data); 183 "\"%s\" is not a regular file", path.data);
184 184
185 return NGX_HTTP_NOT_FOUND; 185 return NGX_HTTP_NOT_FOUND;
186 } 186 }
187 187