summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_runtime.c
diff options
context:
space:
mode:
authorTiago Natel <t.nateldemoura@f5.com>2019-12-06 13:28:05 +0000
committerTiago Natel <t.nateldemoura@f5.com>2019-12-06 13:28:05 +0000
commited2492a66afdf578d1e4f99dc098ab685607b3ba (patch)
tree188ac507ad6efdd02e8aae6adf1dbb5cd406fdbc /src/nxt_runtime.c
parentc6a11260e8ad5fa64cb025f72aab343aea9f1d63 (diff)
downloadunit-ed2492a66afdf578d1e4f99dc098ab685607b3ba.tar.gz
unit-ed2492a66afdf578d1e4f99dc098ab685607b3ba.tar.bz2
Moved credential-related code to nxt_credential.c.
This is required to avoid include cycles, as some nxt_clone_* functions depend on the credential structures, but nxt_process depends on clone structures.
Diffstat (limited to 'src/nxt_runtime.c')
-rw-r--r--src/nxt_runtime.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nxt_runtime.c b/src/nxt_runtime.c
index afd2cb66..80b25c1b 100644
--- a/src/nxt_runtime.c
+++ b/src/nxt_runtime.c
@@ -705,7 +705,7 @@ nxt_runtime_conf_init(nxt_task_t *task, nxt_runtime_t *rt)
}
if (rt->capabilities.setid) {
- ret = nxt_user_cred_get(task, rt->mem_pool, &rt->user_cred,
+ ret = nxt_credential_get(task, rt->mem_pool, &rt->user_cred,
rt->group);
if (nxt_slow_path(ret != NXT_OK)) {