mirror of
https://github.com/nginx/nginx.git
synced 2024-12-04 13:59:00 +08:00
test ngx_file_info() result, the bug has been introduced in r2070
This commit is contained in:
parent
1cf4988be6
commit
467f437e27
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user