diff options
author | Max Romanov <max.romanov@nginx.com> | 2018-09-19 18:53:16 +0300 |
---|---|---|
committer | Max Romanov <max.romanov@nginx.com> | 2018-09-19 18:53:16 +0300 |
commit | 5ef1352fae50c3ca746387914e5b594e8e6e33fc (patch) | |
tree | 1fc09fe4fd3b75f09439e23c1b75a44fd5adda0e /src/nxt_process.c | |
parent | 353db6f361cf26f994b55b3a7ccaec70013fc474 (diff) | |
download | unit-5ef1352fae50c3ca746387914e5b594e8e6e33fc.tar.gz unit-5ef1352fae50c3ca746387914e5b594e8e6e33fc.tar.bz2 |
Initializing user_cred gids and ngroups for MacOS.
Diffstat (limited to 'src/nxt_process.c')
-rw-r--r-- | src/nxt_process.c | 4 |
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; } |