setgroups problems on FreeBSD - proposed fix

Björn JACKE bjoern at
Mon May 21 16:23:47 GMT 2007


on FreeBSD setgroups() behaves a bit non-standard:

FreeBSD stores the effective gid at index 0 in the gid_t *list. This way the
first group in the list that Samba supplies to setgroups gets overwritten.

Attached there is a patch which fixes the setgroups() call also for FreeBSD
systems. Thanks to Volker for that!

This might also be the solution for bugzilla #3990.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: samba3-freebsd-setgroups-fix.patch
Type: text/x-patch
Size: 582 bytes
Desc: not available
Url :

More information about the samba-technical mailing list