Displaying 1 result from an estimated 1 matches for "sys_getgroups".
2003 Apr 20
0
How I got Samba 2.2.8a to run on OpenBSD 3.2 i386
...,10 @@
/* this looks a little strange, but is needed to cope with
systems that put the current egid in the group list
- returned from getgroups() (tridge)
+ returned from getgroups() (tridge) */
save_re_gid();
set_effective_gid(gid);
- setgid(gid);*/
+ setgid(gid);
ngroups = sys_getgroups(0,&grp);
if (ngroups <= 0) {
@@ -164,7 +164,7 @@
goto fail;
}
- //restore_re_gid();
+ restore_re_gid();
(*p_ngroups) = ngroups;
(*p_groups) = groups;
@@ -179,7 +179,7 @@
fail:
SAFE_FREE(groups);
- //restore_re_gid();
+ restore_re_gid();
return -1;
}
-------------- ne...