setgroups problems on FreeBSD - proposed fix
Björn JACKE
bjoern at j3e.de
Mon May 21 16:23:47 GMT 2007
Hi,
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.
Bjoern
-------------- 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 : http://lists.samba.org/archive/samba-technical/attachments/20070521/12c5d17f/samba3-freebsd-setgroups-fix.bin
More information about the samba-technical
mailing list