summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorMax Romanov <max.romanov@nginx.com>2018-09-19 18:53:16 +0300
committerMax Romanov <max.romanov@nginx.com>2018-09-19 18:53:16 +0300
commit5ef1352fae50c3ca746387914e5b594e8e6e33fc (patch)
tree1fc09fe4fd3b75f09439e23c1b75a44fd5adda0e /src
parent353db6f361cf26f994b55b3a7ccaec70013fc474 (diff)
downloadunit-5ef1352fae50c3ca746387914e5b594e8e6e33fc.tar.gz
unit-5ef1352fae50c3ca746387914e5b594e8e6e33fc.tar.bz2
Initializing user_cred gids and ngroups for MacOS.
Diffstat (limited to 'src')
-rw-r--r--src/nxt_process.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/nxt_process.c b/src/nxt_process.c
index f51de42e..59520297 100644
--- a/src/nxt_process.c
+++ b/src/nxt_process.c
@@ -486,6 +486,10 @@ nxt_user_groups_get(nxt_task_t *task, nxt_user_cred_t *uc)
if (nsaved > NGROUPS_MAX) {
/* MacOSX case. */
+
+ uc->gids = NULL;
+ uc->ngroups = 0;
+
return NXT_OK;
}