summaryrefslogtreecommitdiffstats
path: root/usr.bin/id/id.c
diff options
context:
space:
mode:
authordd <dd@FreeBSD.org>2001-05-20 20:32:13 +0000
committerdd <dd@FreeBSD.org>2001-05-20 20:32:13 +0000
commit79b7ca8187f3febc2214bf2336f498c3c4bb9471 (patch)
treee15bd593d2de5edae3bb527ef816183510470743 /usr.bin/id/id.c
parentb093b83cde6aea209e825c09bd4ed152b1f9aa33 (diff)
downloadFreeBSD-src-79b7ca8187f3febc2214bf2336f498c3c4bb9471.zip
FreeBSD-src-79b7ca8187f3febc2214bf2336f498c3c4bb9471.tar.gz
Print commas in the group list in user(). current() already did this.
Reviewed by: ru, sheldonh Inspired by: OpenBSD, NetBSD
Diffstat (limited to 'usr.bin/id/id.c')
-rw-r--r--usr.bin/id/id.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/id/id.c b/usr.bin/id/id.c
index 821d701..4c1150a 100644
--- a/usr.bin/id/id.c
+++ b/usr.bin/id/id.c
@@ -259,7 +259,7 @@ user(pw)
if (lastgid == (gid = groups[cnt]))
continue;
(void)printf(fmt, gid);
- fmt = " %u";
+ fmt = ", %u";
if ((gr = getgrgid(gid)))
(void)printf("(%s)", gr->gr_name);
lastgid = gid;
OpenPOWER on IntegriCloud