-p and --prefix=
diff --git a/src/http/ngx_http_script.c b/src/http/ngx_http_script.c
index f292d5a..b8e998a 100644
--- a/src/http/ngx_http_script.c
+++ b/src/http/ngx_http_script.c
@@ -1213,7 +1213,7 @@
}
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 @@
}
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 @@
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 @@
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;
diff --git a/src/http/ngx_http_script.h b/src/http/ngx_http_script.h
index d5a50b9..ea97069 100644
--- a/src/http/ngx_http_script.h
+++ b/src/http/ngx_http_script.h
@@ -153,7 +153,7 @@
typedef struct {
ngx_http_script_code_pt code;
- uintptr_t prefix;
+ uintptr_t conf_prefix;
} ngx_http_script_full_name_code_t;