mirror of
https://github.com/samba-team/samba.git
synced 2025-08-03 04:22:09 +03:00
wrap internals of sys_setgroups() so the sys_XX() call can be done unconditionally; bug 550
(This used to be commit 9df3f53e6a
)
This commit is contained in:
@ -92,7 +92,7 @@ static int getgrouplist_internals(const char *user, gid_t gid, gid_t *groups, in
|
||||
|
||||
restore_re_gid();
|
||||
|
||||
if (setgroups(ngrp_saved, gids_saved) != 0) {
|
||||
if (sys_setgroups(ngrp_saved, gids_saved) != 0) {
|
||||
/* yikes! */
|
||||
DEBUG(0,("ERROR: getgrouplist: failed to reset group list!\n"));
|
||||
smb_panic("getgrouplist: failed to reset group list!\n");
|
||||
|
Reference in New Issue
Block a user