1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 12:17:44 +00:00

Tweak /bin/id output slightly.

This commit is contained in:
Andreas Kling 2018-12-29 03:44:37 +01:00
parent eed6031064
commit 2239ab96e7

View file

@ -26,7 +26,7 @@ int main(int argc, char** argv)
perror("\ngetgroups"); perror("\ngetgroups");
return 1; return 1;
} }
printf(","); printf(", groups=");
for (int g = 0; g < extra_gid_count; ++g) { for (int g = 0; g < extra_gid_count; ++g) {
auto* gr = getgrgid(extra_gids[g]); auto* gr = getgrgid(extra_gids[g]);
if (gr) if (gr)