summaryrefslogtreecommitdiff
path: root/src/os/unix/ngx_files.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2008-08-26 16:16:18 +0000
committerJonathan Kolb <jon@b0g.us>2008-08-26 16:16:18 +0000
commitfb724e08fc0e4617f44952f664e0020076075b50 (patch)
treeec653f57797957406b2d6fd1bac8efdcf2ede43f /src/os/unix/ngx_files.c
parent40ba52949620018fb7756cd33d163fd676cdd067 (diff)
downloadnginx-0.7.12.tar.gz
Changes with nginx 0.7.12 26 Aug 2008v0.7.12
*) Feature: the "server_name" directive supports empty name "". *) Feature: the "gzip_disable" directive supports special "msie6" mask. *) Bugfix: if the "max_fails=0" parameter was used in upstream with several servers, then a worker process exited on a SIGFPE signal. Thanks to Maxim Dounin. *) Bugfix: a request body was dropped while redirection via an "error_page" directive. *) Bugfix: a full response was returned for request method HEAD while redirection via an "error_page" directive. *) Bugfix: the $r->header_in() method did not return value of the "Host", "User-Agent", and "Connection" request header lines; the bug had appeared in 0.7.0.
Diffstat (limited to 'src/os/unix/ngx_files.c')
-rw-r--r--src/os/unix/ngx_files.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/os/unix/ngx_files.c b/src/os/unix/ngx_files.c
index e2148d843..d3abdd9e2 100644
--- a/src/os/unix/ngx_files.c
+++ b/src/os/unix/ngx_files.c
@@ -265,10 +265,14 @@ ngx_open_glob(ngx_glob_t *gl)
return NGX_OK;
}
+#ifdef GLOB_NOMATCH
+
if (n == GLOB_NOMATCH && gl->test) {
return NGX_OK;
}
+#endif
+
return NGX_ERROR;
}
@@ -276,7 +280,7 @@ ngx_open_glob(ngx_glob_t *gl)
ngx_int_t
ngx_read_glob(ngx_glob_t *gl, ngx_str_t *name)
{
- if (gl->n < (size_t) gl->pglob.gl_pathc) {
+ if (gl->n < (size_t) gl->pglob.gl_matchc) {
name->len = (size_t) ngx_strlen(gl->pglob.gl_pathv[gl->n]);
name->data = (u_char *) gl->pglob.gl_pathv[gl->n];