Commit c9d5cd3d authored by Mac Newbold's avatar Mac Newbold
Browse files

Do some fancy bit flipping with the groups to make sure we pick up all of them.

parent ccc691a7
......@@ -147,8 +147,14 @@ else {
# Send the email now, which terminates the audit.
AuditEnd();
# Remove current group from glist, then add gid twice at the front of the list
# Order matters here, or we won't pick up all the groups we need.
$glist =~ s/ ?\b$unix_gid\b ?//;
$glist = $unix_gid . " " . $unix_gid . " " . $glist;
$GID = $unix_gid;
$EGID = $unix_gid . " " . $glist;
$EGID = $glist;
$EUID = $UID = $unix_uid;
$ENV{'USER'} = $creator;
$ENV{'LOGNAME'} = $creator;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment