Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -541,8 +541,7 @@ private static int CheckUserAndGroupIds(string userId, string groupId, string gr
}

[ConditionalFact(typeof(RemoteExecutor), nameof(RemoteExecutor.IsSupported))]
[ActiveIssue("https://github.com/dotnet/runtime/issues/28922", TestPlatforms.AnyUnix)]
public unsafe void TestCheckChildProcessUserAndGroupIds()
public void TestCheckChildProcessUserAndGroupIds()
{
string userName = GetCurrentRealUserName();
string userId = GetUserId(userName);
Expand Down Expand Up @@ -923,7 +922,11 @@ private static unsafe HashSet<uint> GetGroups()
}

// Return this as a HashSet to filter out duplicates.
return new HashSet<uint>(groups.Slice(0, rv).ToArray());
var result = new HashSet<uint>(groups.Slice(0, rv).ToArray());
// according to https://man7.org/linux/man-pages/man2/getgroups.2.html it's not specified
// if this group is included in the list returned by getgroups
result.Add(getegid());
return result;
}
}

Expand Down