]> granicus.if.org Git - sudo/commit
For "sudo -g" prepend the specified group ID to the beginning of
authorTodd C. Miller <Todd.Miller@courtesan.com>
Thu, 19 Jan 2012 16:08:45 +0000 (11:08 -0500)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Thu, 19 Jan 2012 16:08:45 +0000 (11:08 -0500)
commit265c1438a4329f398e1779d0d3c2375a74a424dd
tree26f823987feab545278afc44a2fc1076162fc839
parent8cb0905cc10df3d9a0416dca77e9a007f6240368
parenta5dfea7cd4282b8229cc92c9bdb41c66a525cb31
For "sudo -g" prepend the specified group ID to the beginning of
the groups list.  This matches BSD convention where the effective
gid is the first entry in the group list.  This is required on newer
FreeBSD where the effective gid is not tracked separately and thus
setgroups() changes the egid if this convention is not followed.
Fixes bug #532

--HG--
branch : 1.8