diff options
author | Aaron Campbell <aaron@cvs.openbsd.org> | 1999-08-18 12:23:02 +0000 |
---|---|---|
committer | Aaron Campbell <aaron@cvs.openbsd.org> | 1999-08-18 12:23:02 +0000 |
commit | b654660bb365655a143a805144a893692aa7b5ff (patch) | |
tree | 6be45cbdb89f335e8bd4faa94b0b443624bcdd8f /usr.bin | |
parent | b0abf4a5c16115a25c1f0487905199ad3ebcc7b0 (diff) |
Fix a printf() so `id' and `id username' produce similar output; inspired by
NetBSD, millert@ok.
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/id/id.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/id/id.c b/usr.bin/id/id.c index bb63e7eff5d..705e72e6883 100644 --- a/usr.bin/id/id.c +++ b/usr.bin/id/id.c @@ -1,4 +1,4 @@ -/* $OpenBSD: id.c,v 1.7 1999/07/23 19:24:33 aaron Exp $ */ +/* $OpenBSD: id.c,v 1.8 1999/08/18 12:23:01 aaron Exp $ */ /*- * Copyright (c) 1991, 1993 @@ -41,7 +41,7 @@ static char copyright[] = #ifndef lint /*static char sccsid[] = "@(#)id.c 8.3 (Berkeley) 4/28/95";*/ -static char rcsid[] = "$OpenBSD: id.c,v 1.7 1999/07/23 19:24:33 aaron Exp $"; +static char rcsid[] = "$OpenBSD: id.c,v 1.8 1999/08/18 12:23:01 aaron Exp $"; #endif /* not lint */ #include <sys/param.h> @@ -249,7 +249,7 @@ user(pw) if (lastid == (id = groups[cnt])) continue; (void)printf(fmt, id); - fmt = " %u"; + fmt = ", %u"; if ((gr = getgrgid(id))) (void)printf("(%s)", gr->gr_name); lastid = id; |