aboutsummaryrefslogtreecommitdiff
path: root/src/http/ngx_http_script.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2009-04-27 11:32:33 +0000
committerIgor Sysoev <igor@sysoev.ru>2009-04-27 11:32:33 +0000
commit5ef370df40b46b431f2c65d5a35d79569c647fc8 (patch)
tree8ef57a278e29261bcf160c9ab3fc248cfd674cf1 /src/http/ngx_http_script.c
parentdf585ef949c801d15a915c380583a60f032754b5 (diff)
downloadnginx-5ef370df40b46b431f2c65d5a35d79569c647fc8.tar.gz
nginx-5ef370df40b46b431f2c65d5a35d79569c647fc8.zip
-p and --prefix=
Diffstat (limited to 'src/http/ngx_http_script.c')
-rw-r--r--src/http/ngx_http_script.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/http/ngx_http_script.c b/src/http/ngx_http_script.c
index f292d5a2e..b8e998abb 100644
--- a/src/http/ngx_http_script.c
+++ b/src/http/ngx_http_script.c
@@ -1213,7 +1213,7 @@ ngx_http_script_add_full_name_code(ngx_http_script_compile_t *sc)
}
code->code = (ngx_http_script_code_pt) ngx_http_script_full_name_len_code;
- code->prefix = sc->conf_prefix;
+ code->conf_prefix = sc->conf_prefix;
code = ngx_http_script_add_code(*sc->values,
sizeof(ngx_http_script_full_name_code_t),
@@ -1223,7 +1223,7 @@ ngx_http_script_add_full_name_code(ngx_http_script_compile_t *sc)
}
code->code = ngx_http_script_full_name_code;
- code->prefix = sc->conf_prefix;
+ code->conf_prefix = sc->conf_prefix;
return NGX_OK;
}
@@ -1238,7 +1238,8 @@ ngx_http_script_full_name_len_code(ngx_http_script_engine_t *e)
e->ip += sizeof(ngx_http_script_full_name_code_t);
- return code->prefix ? sizeof(NGX_CONF_PREFIX) : ngx_cycle->root.len;
+ return code->conf_prefix ? ngx_cycle->conf_prefix.len:
+ ngx_cycle->prefix.len;
}
@@ -1254,7 +1255,7 @@ ngx_http_script_full_name_code(ngx_http_script_engine_t *e)
value.data = e->buf.data;
value.len = e->pos - e->buf.data;
- if (ngx_conf_full_name((ngx_cycle_t *) ngx_cycle, &value, code->prefix)
+ if (ngx_conf_full_name((ngx_cycle_t *) ngx_cycle, &value, code->conf_prefix)
!= NGX_OK)
{
e->ip = ngx_http_script_exit;