summaryrefslogtreecommitdiffhomepage
path: root/src/core
diff options
context:
space:
mode:
Diffstat (limited to 'src/core')
-rw-r--r--src/core/nginx.c10
-rw-r--r--src/core/ngx_conf_file.c4
-rw-r--r--src/core/ngx_file.c8
3 files changed, 15 insertions, 7 deletions
diff --git a/src/core/nginx.c b/src/core/nginx.c
index 4cc80826e..9cabac1e6 100644
--- a/src/core/nginx.c
+++ b/src/core/nginx.c
@@ -897,7 +897,9 @@ ngx_process_options(ngx_cycle_t *cycle)
ngx_str_set(&cycle->conf_file, NGX_CONF_PATH);
}
- if (ngx_conf_full_name(cycle, &cycle->conf_file, 0) != NGX_OK) {
+ if (ngx_get_full_name(cycle->pool, &cycle->prefix, &cycle->conf_file)
+ != NGX_OK)
+ {
return NGX_ERROR;
}
@@ -1013,7 +1015,7 @@ ngx_core_module_init_conf(ngx_cycle_t *cycle, void *conf)
ngx_str_set(&ccf->pid, NGX_PID_PATH);
}
- if (ngx_conf_full_name(cycle, &ccf->pid, 0) != NGX_OK) {
+ if (ngx_get_full_name(cycle->pool, &cycle->prefix, &ccf->pid) != NGX_OK) {
return NGX_CONF_ERROR;
}
@@ -1061,7 +1063,9 @@ ngx_core_module_init_conf(ngx_cycle_t *cycle, void *conf)
ngx_str_set(&ccf->lock_file, NGX_LOCK_PATH);
}
- if (ngx_conf_full_name(cycle, &ccf->lock_file, 0) != NGX_OK) {
+ if (ngx_get_full_name(cycle->pool, &cycle->prefix, &ccf->lock_file)
+ != NGX_OK)
+ {
return NGX_CONF_ERROR;
}
diff --git a/src/core/ngx_conf_file.c b/src/core/ngx_conf_file.c
index 6cfb5d58d..38483428e 100644
--- a/src/core/ngx_conf_file.c
+++ b/src/core/ngx_conf_file.c
@@ -747,7 +747,7 @@ ngx_conf_include(ngx_conf_t *cf, ngx_command_t *cmd, void *conf)
ngx_log_debug1(NGX_LOG_DEBUG_CORE, cf->log, 0, "include %s", file.data);
- if (ngx_conf_full_name(cf->cycle, &file, 1) != NGX_OK) {
+ if (ngx_get_full_name(cf->pool, &cf->cycle->conf_prefix, &file) != NGX_OK) {
return NGX_CONF_ERROR;
}
@@ -822,7 +822,7 @@ ngx_conf_open_file(ngx_cycle_t *cycle, ngx_str_t *name)
if (name->len) {
full = *name;
- if (ngx_conf_full_name(cycle, &full, 0) != NGX_OK) {
+ if (ngx_get_full_name(cycle->pool, &cycle->prefix, &full) != NGX_OK) {
return NULL;
}
diff --git a/src/core/ngx_file.c b/src/core/ngx_file.c
index 28e8871ec..049b8767c 100644
--- a/src/core/ngx_file.c
+++ b/src/core/ngx_file.c
@@ -355,7 +355,9 @@ ngx_conf_set_path_slot(ngx_conf_t *cf, ngx_command_t *cmd, void *conf)
path->name.len--;
}
- if (ngx_conf_full_name(cf->cycle, &path->name, 0) != NGX_OK) {
+ if (ngx_get_full_name(cf->pool, &cf->cycle->prefix, &path->name)
+ != NGX_OK)
+ {
return NULL;
}
@@ -409,7 +411,9 @@ ngx_conf_merge_path_value(ngx_conf_t *cf, ngx_path_t **path, ngx_path_t *prev,
(*path)->name = init->name;
- if (ngx_conf_full_name(cf->cycle, &(*path)->name, 0) != NGX_OK) {
+ if (ngx_get_full_name(cf->pool, &cf->cycle->prefix, &(*path)->name)
+ != NGX_OK)
+ {
return NGX_CONF_ERROR;
}