mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-17 15:27:36 +00:00
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]))
|
if (lastgid == (gid = groups[cnt]))
|
||||||
continue;
|
continue;
|
||||||
(void)printf(fmt, gid);
|
(void)printf(fmt, gid);
|
||||||
fmt = " %u";
|
fmt = ", %u";
|
||||||
if ((gr = getgrgid(gid)))
|
if ((gr = getgrgid(gid)))
|
||||||
(void)printf("(%s)", gr->gr_name);
|
(void)printf("(%s)", gr->gr_name);
|
||||||
lastgid = gid;
|
lastgid = gid;
|
||||||
|
Loading…
Reference in New Issue
Block a user