Fix SUSv3 compliance: Use a single comma instead of comma and space to separate

additional group entries.

PR:		107298
Submitted by:	Joost Bekkers
This commit is contained in:
stefanf 2006-12-29 12:28:34 +00:00
parent b35ac7f09b
commit c383932a73

View File

@ -300,7 +300,7 @@ id_print(struct passwd *pw, int use_ggl, int p_euid, int p_egid)
if (lastgid == (gid = groups[cnt]))
continue;
printf(fmt, gid);
fmt = ", %u";
fmt = ",%u";
if ((gr = getgrgid(gid)))
printf("(%s)", gr->gr_name);
lastgid = gid;