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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=76907
@ -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