mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 16:45:03 +00:00
Userland: Fix id(1) printing the user's primary group for extra gids
This regressed in 538cc9d9 because of a typo.
This commit is contained in:
@@ -134,7 +134,7 @@ static bool print_full_id_list(Core::Account const& account)
|
||||
out("uid={}({}) gid={}({})", uid, pw ? pw->pw_name : "n/a", gid, gr ? gr->gr_name : "n/a");
|
||||
|
||||
for (auto extra_gid : account.extra_gids()) {
|
||||
auto* gr = getgrgid(gid);
|
||||
auto* gr = getgrgid(extra_gid);
|
||||
if (gr)
|
||||
out(" {}({})", extra_gid, gr->gr_name);
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user