summaryrefslogtreecommitdiffhomepage
path: root/src/os/unix/ngx_files.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2010-02-01 14:52:25 +0000
committerIgor Sysoev <igor@sysoev.ru>2010-02-01 14:52:25 +0000
commitaf7e5336829540d80490fc4fa7153ce2efb95954 (patch)
tree3e5e0dfc8e736f6f579ede80f284930ae681c6b1 /src/os/unix/ngx_files.c
parent30ee8008be32ec1b7229eff2bd0b2462146c480c (diff)
downloadnginx-af7e5336829540d80490fc4fa7153ce2efb95954.tar.gz
nginx-af7e5336829540d80490fc4fa7153ce2efb95954.tar.bz2
merge r3201, r3204, r3411:
ngx_http_autoindex_module fixes: *) reset cached dirent.d_type after stat() this fixes slash after link to a directory in ngx_http_autoindex_module; *) use cached dirent.d_type as hint on all systems the issues has been introduced in r2235 *) fix ngx_utf8_cpystrn(): it did not fully copy utf-8 string
Diffstat (limited to 'src/os/unix/ngx_files.c')
-rw-r--r--src/os/unix/ngx_files.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/os/unix/ngx_files.c b/src/os/unix/ngx_files.c
index 98ed08229..10436a918 100644
--- a/src/os/unix/ngx_files.c
+++ b/src/os/unix/ngx_files.c
@@ -262,9 +262,8 @@ ngx_read_dir(ngx_dir_t *dir)
if (dir->de) {
#if (NGX_HAVE_D_TYPE)
dir->type = dir->de->d_type;
- dir->valid_type = dir->type ? 1 : 0;
#else
- dir->valid_type = 0;
+ dir->type = 0;
#endif
return NGX_OK;
}