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:
dd 2001-05-20 20:32:13 +00:00
parent b093b83cde
commit 79b7ca8187

View File

@ -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;