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-----
Hash: SHA1
Björn JACKE wrote:
> 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.
Seems reasonable to me, but I don't have a FreeBSD box to
verify. If no one else objects, have Volker check it in
for 3.0.26.
cheers, jerry
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFGVFwJIR7qMdg1EfYRAvt/AKCTyr0rS/hOnctVFkaWQAsox6Xl4gCfXZ1F
AxPkX0NHrxGvDMiVt/MX22k=
=MveM
-----END PGP SIGNATURE-----
More information about the samba-technical
mailing list