Initializing user_cred gids and ngroups for MacOS.
This commit is contained in:
parent
353db6f361
commit
5ef1352fae
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue