setgroups problems on FreeBSD - proposed fix
Gerald (Jerry) Carter
jerry at samba.org
Wed May 23 15:21:45 GMT 2007
-----BEGIN PGP SIGNED MESSAGE-----
Björn JACKE wrote:
> 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.
Seems reasonable to me, but I don't have a FreeBSD box to
verify. If no one else objects, have Volker check it in
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
-----END PGP SIGNATURE-----
More information about the samba-technical