Mercurial > hg > nginx
changeset 3203:a56cccd588e6
update r3201: ngx_http_random_index_module should behave consistently
in spite of the dirent.d_type presence
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Wed, 14 Oct 2009 12:39:41 +0000 |
parents | 121fae8c673c |
children | ea3d168fb99c |
files | src/http/modules/ngx_http_random_index_module.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/http/modules/ngx_http_random_index_module.c Wed Oct 14 11:46:09 2009 +0000 +++ b/src/http/modules/ngx_http_random_index_module.c Wed Oct 14 12:39:41 2009 +0000 @@ -175,7 +175,7 @@ len = ngx_de_namelen(&dir); - if (dir.type == 0) { + if (dir.type == 0 || ngx_de_is_link(&dir)) { /* 1 byte for '/' and 1 byte for terminating '\0' */