setgroups problems on FreeBSD - proposed fix
bjoern at j3e.de
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...
Size: 582 bytes
Desc: not available
Url : http://lists.samba.org/archive/samba-technical/attachments/20070521/12c5d17f/samba3-freebsd-setgroups-fix.bin
More information about the samba-technical