why is (gid_t)-1 treated as a group mapping failure?

Gerald (Jerry) Carter jerry at samba.org
Wed May 2 02:22:27 GMT 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

James Peach wrote:
> Hi all,
> 
> There's a bunch of code sprinkled throughout the 
> passdb layer(s) that asserts that -1 cannot be a valid
> ID.

It's a hack to allow the nss_info layer to return
a primary group id and override the Windows primary
group (e.g gidNumber attribute in posixAccount for RFC2307).

- -1 seemed a better choice than 0.


cheers, jerry
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGN/XjIR7qMdg1EfYRAtL2AKC5mva+ymCmSctDQNH+I0VmjrdXdgCggd5E
n3/O2RI9kD4+91POQ2LcJEU=
=/pNV
-----END PGP SIGNATURE-----


More information about the samba-technical mailing list