Print commas in the group list in user(). current() already did this.
Reviewed by: ru, sheldonh Inspired by: OpenBSD, NetBSD
This commit is contained in:
parent
17008f5343
commit
387acdd9ff
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user