]> git.kaiwu.me - nginx.git/commitdiff
test ngx_file_info() result, the bug has been introduced in r2070
authorIgor Sysoev <igor@sysoev.ru>
Wed, 21 Jan 2009 15:50:52 +0000 (15:50 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Wed, 21 Jan 2009 15:50:52 +0000 (15:50 +0000)
src/core/ngx_open_file_cache.c

index f9c6a459a5443e6ab4da74c5d442c70a307ec736..60a8368bef6178fb59336241a7968b8ed4196a92 100644 (file)
@@ -457,7 +457,7 @@ ngx_open_and_stat_file(u_char *name, ngx_open_file_info_t *of, ngx_log_t *log)
             goto failed;
         }
 
-        if (of->is_dir) {
+        if (ngx_is_dir(&fi)) {
             goto done;
         }
     }