mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 08:44:58 +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:
parent
08359ba578
commit
ce3f8661fb
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue