]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix {g|s}etgroups semantics. We use cr_groups[0] to hold egid. This means that
authormarcel <marcel@FreeBSD.org>
Wed, 25 Aug 1999 14:11:01 +0000 (14:11 +0000)
committermarcel <marcel@FreeBSD.org>
Wed, 25 Aug 1999 14:11:01 +0000 (14:11 +0000)
commit09bd601964391c338888981d372d427b70b89fe6
treeb97c0f43b5523c7fa263455f4007adf4e903b3a8
parentd7bf63683b371cadf138c48b1485b9ea74057769
Fix {g|s}etgroups semantics. We use cr_groups[0] to hold egid. This means that
egid will be twice in the set and that setting cr_groups[0] will change egid.
This is simply solved by ignoring cr_groups[0]. That is; linux_getgroups does
not return cr_groups[0] and linux_setgroups does not touch it.

Noticed by: bde
Brought to my attention by: sheldonh
sys/compat/linux/linux_misc.c
sys/i386/linux/linux_misc.c