setgroups problems on FreeBSD - proposed fix
jpeach at samba.org
Wed May 23 16:31:34 GMT 2007
On May 23, 2007, at 8:44 AM, Volker Lendecke wrote:
> On Wed, May 23, 2007 at 08:35:46AM -0700, James Peach wrote:
>>> "Seems reasonable" is not enough for my taste here. If you
>>> google for that problem, nobody really nails it down to what
>>> is exacly happening. Before checking in stuff to such a
>>> sensitive piece of code, I want to see the FreeBSD
>>> setgroups() sources. But this will take a bit.
>> FWIW, Darwin does the same as FreeBSD ...
> Can you dig up what's going on here?
The first element in the groups list is always the effective gid on
(most?all?) BSD systems. But you get this back from getgroups, so as
long as you only give setgroups what you got back from getgroups, you
don't need anything special.
I can't seem to get to bugzilla to get at the bug :(
James Peach | jpeach at samba.org
More information about the samba-technical