summaryrefslogtreecommitdiff
path: root/Userland/id.cpp
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2020-01-04 13:26:51 +0100
committerAndreas Kling <awesomekling@gmail.com>2020-01-04 13:26:51 +0100
commitd4b4883d550a1af9476d302c31f2ec6139fafe37 (patch)
tree54047284e301b7160afee83afb7d88fd3adb413a /Userland/id.cpp
parentf558c8e36a3bb0d368cd51866f2d33e53c1c8818 (diff)
downloadserenity-d4b4883d550a1af9476d302c31f2ec6139fafe37.zip
id: Remove weird commas from output
Diffstat (limited to 'Userland/id.cpp')
-rw-r--r--Userland/id.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/id.cpp b/Userland/id.cpp
index 2c5f811d4b..48048a88cb 100644
--- a/Userland/id.cpp
+++ b/Userland/id.cpp
@@ -100,7 +100,7 @@ bool print_full_id_list()
struct passwd* pw = getpwuid(uid);
struct group* gr = getgrgid(gid);
- printf("uid=%u(%s), gid=%u(%s)", uid, pw ? pw->pw_name : "n/a", gid, gr ? gr->gr_name : "n/a");
+ printf("uid=%u(%s) gid=%u(%s)", uid, pw ? pw->pw_name : "n/a", gid, gr ? gr->gr_name : "n/a");
int extra_gid_count = getgroups(0, nullptr);
if (extra_gid_count) {
@@ -110,7 +110,7 @@ bool print_full_id_list()
perror("\ngetgroups");
return false;
}
- printf(", groups=");
+ printf(" groups=");
for (int g = 0; g < extra_gid_count; ++g) {
auto* gr = getgrgid(extra_gids[g]);
if (gr)