1
0
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:
Gerald Carter
2003-10-01 17:01:21 +00:00
parent 60c8778a60
commit b526d07d54
2 changed files with 6 additions and 4 deletions

View File

@ -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");