comparison src/os/unix/ngx_files.c @ 456:ca8f7f6cab16 NGINX_0_7_40

nginx 0.7.40 *) Feature: the "location" directive supports captures in regular expressions. *) Feature: an "alias" directive with capture references may be used inside a location given by a regular expression with captures. *) Feature: the "server_name" directive supports captures in regular expressions. *) Workaround: the ngx_http_autoindex_module did not show the trailing slash in directories on XFS filesystem; the issue had appeared in 0.7.15. Thanks to Dmitry Kuzmenko.
author Igor Sysoev <http://sysoev.ru>
date Mon, 09 Mar 2009 00:00:00 +0300
parents a8e3f1441eec
children 56baf312c1b5
comparison
equal deleted inserted replaced
455:ead634c4b006 456:ca8f7f6cab16
247 if (dir->dir == NULL) { 247 if (dir->dir == NULL) {
248 return NGX_ERROR; 248 return NGX_ERROR;
249 } 249 }
250 250
251 dir->valid_info = 0; 251 dir->valid_info = 0;
252 #if (NGX_HAVE_D_TYPE)
253 dir->valid_type = 1;
254 #else
255 dir->valid_type = 0;
256 #endif
257 252
258 return NGX_OK; 253 return NGX_OK;
259 } 254 }
260 255
261 256
265 dir->de = readdir(dir->dir); 260 dir->de = readdir(dir->dir);
266 261
267 if (dir->de) { 262 if (dir->de) {
268 #if (NGX_HAVE_D_TYPE) 263 #if (NGX_HAVE_D_TYPE)
269 dir->type = dir->de->d_type; 264 dir->type = dir->de->d_type;
265 dir->valid_type = dir->type ? 1 : 0;
266 #else
267 dir->valid_type = 0;
270 #endif 268 #endif
271 return NGX_OK; 269 return NGX_OK;
272 } 270 }
273 271
274 return NGX_ERROR; 272 return NGX_ERROR;