Klaus Demo nginx / 843ad94
fix building on FreeBSD prior to 4.8, it has no GLOB_NOMATCH Igor Sysoev 13 years ago
1 changed file(s) with 5 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
264264 return NGX_OK;
265265 }
266266
267 #ifdef GLOB_NOMATCH
268
267269 if (n == GLOB_NOMATCH && gl->test) {
268270 return NGX_OK;
269271 }
270272
273 #endif
274
271275 return NGX_ERROR;
272276 }
273277
275279 ngx_int_t
276280 ngx_read_glob(ngx_glob_t *gl, ngx_str_t *name)
277281 {
278 if (gl->n < (size_t) gl->pglob.gl_pathc) {
282 if (gl->n < (size_t) gl->pglob.gl_matchc) {
279283
280284 name->len = (size_t) ngx_strlen(gl->pglob.gl_pathv[gl->n]);
281285 name->data = (u_char *) gl->pglob.gl_pathv[gl->n];