comparison src/http/modules/ngx_http_random_index_module.c @ 578:f3a9e57d2e17

Merge with current.
author Maxim Dounin <mdounin@mdounin.ru>
date Thu, 11 Mar 2010 21:27:17 +0300
parents 0dc162a5f3e8
children ff463db0be31
comparison
equal deleted inserted replaced
539:5f4de8cf0d9d 578:f3a9e57d2e17
173 continue; 173 continue;
174 } 174 }
175 175
176 len = ngx_de_namelen(&dir); 176 len = ngx_de_namelen(&dir);
177 177
178 if (!dir.valid_type) { 178 if (dir.type == 0 || ngx_de_is_link(&dir)) {
179 179
180 /* 1 byte for '/' and 1 byte for terminating '\0' */ 180 /* 1 byte for '/' and 1 byte for terminating '\0' */
181 181
182 if (path.len + 1 + len + 1 > allocated) { 182 if (path.len + 1 + len + 1 > allocated) {
183 allocated = path.len + 1 + len + 1 183 allocated = path.len + 1 + len + 1