comparison src/core/ngx_open_file_cache.c @ 2460:225fa4abd76f

test ngx_file_info() result, the bug has been introduced in r2070
author Igor Sysoev <igor@sysoev.ru>
date Wed, 21 Jan 2009 15:50:52 +0000
parents 987831d73bd8
children 64a10d6b97bd
comparison
equal deleted inserted replaced
2459:f732b8509658 2460:225fa4abd76f
455 455
456 if (ngx_file_info(name, &fi) == -1) { 456 if (ngx_file_info(name, &fi) == -1) {
457 goto failed; 457 goto failed;
458 } 458 }
459 459
460 if (of->is_dir) { 460 if (ngx_is_dir(&fi)) {
461 goto done; 461 goto done;
462 } 462 }
463 } 463 }
464 464
465 if (!of->log) { 465 if (!of->log) {