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:
Dima Dorfman 2001-05-20 20:32:13 +00:00
parent 17008f5343
commit 387acdd9ff

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;