diff options
author | Igor Sysoev <igor@sysoev.ru> | 2009-10-14 12:39:41 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2009-10-14 12:39:41 +0000 |
commit | 73a9c444415c1ba857c81d03138b967bc04835da (patch) | |
tree | 32540ea75b6d5a9bb8bdb680011d419ad104baa6 /src/http/modules/ngx_http_random_index_module.c | |
parent | 3f438068eb40e143ba79c239935306f90af0dfaf (diff) | |
download | nginx-73a9c444415c1ba857c81d03138b967bc04835da.tar.gz nginx-73a9c444415c1ba857c81d03138b967bc04835da.zip |
update r3201: ngx_http_random_index_module should behave consistently
in spite of the dirent.d_type presence
Diffstat (limited to 'src/http/modules/ngx_http_random_index_module.c')
-rw-r--r-- | src/http/modules/ngx_http_random_index_module.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/http/modules/ngx_http_random_index_module.c b/src/http/modules/ngx_http_random_index_module.c index 29491f519..7b0ec503c 100644 --- a/src/http/modules/ngx_http_random_index_module.c +++ b/src/http/modules/ngx_http_random_index_module.c @@ -175,7 +175,7 @@ ngx_http_random_index_handler(ngx_http_request_t *r) 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' */ |