diff 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
line wrap: on
line diff
--- a/src/core/ngx_open_file_cache.c
+++ b/src/core/ngx_open_file_cache.c
@@ -457,7 +457,7 @@ ngx_open_and_stat_file(u_char *name, ngx
             goto failed;
         }
 
-        if (of->is_dir) {
+        if (ngx_is_dir(&fi)) {
             goto done;
         }
     }