summaryrefslogtreecommitdiffstats
path: root/usr.bin/id
diff options
context:
space:
mode:
authorsteve <steve@FreeBSD.org>1998-02-18 17:35:16 +0000
committersteve <steve@FreeBSD.org>1998-02-18 17:35:16 +0000
commit1e009eea0e2b5d230ae267d0cec5d4fc1a10e185 (patch)
treea945314fb7c2a53c493c2df7d3ed99ff7bfcb7f5 /usr.bin/id
parent115161cc639dc597572748b02323a72bbdadc8b3 (diff)
downloadFreeBSD-src-1e009eea0e2b5d230ae267d0cec5d4fc1a10e185.zip
FreeBSD-src-1e009eea0e2b5d230ae267d0cec5d4fc1a10e185.tar.gz
Missing newline when euid != ruid.
PR: 5778 Submitted by: Martin Kammerhofer <dada@sbox.tu-graz.ac.at>
Diffstat (limited to 'usr.bin/id')
-rw-r--r--usr.bin/id/id.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/id/id.c b/usr.bin/id/id.c
index d1462f9..0cb0d1f 100644
--- a/usr.bin/id/id.c
+++ b/usr.bin/id/id.c
@@ -42,7 +42,7 @@ static const char copyright[] =
static char sccsid[] = "@(#)id.c 8.2 (Berkeley) 2/16/94";
#endif
static const char rcsid[] =
- "$Id$";
+ "$Id: id.c,v 1.5 1997/07/15 09:48:49 charnier Exp $";
#endif /* not lint */
#include <sys/param.h>
@@ -174,9 +174,9 @@ pretty(pw)
if ((eid = geteuid()) != rid)
if ((pw = getpwuid(eid)))
- (void)printf("euid\t%s", pw->pw_name);
+ (void)printf("euid\t%s\n", pw->pw_name);
else
- (void)printf("euid\t%u", eid);
+ (void)printf("euid\t%u\n", eid);
if ((rid = getgid()) != (eid = getegid()))
if ((gr = getgrgid(rid)))
(void)printf("rgid\t%s\n", gr->gr_name);
OpenPOWER on IntegriCloud