mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-01 12:19:28 +00:00
Missing newline when euid != ruid.
PR: 5778 Submitted by: Martin Kammerhofer <dada@sbox.tu-graz.ac.at>
This commit is contained in:
parent
34ec3b3cc9
commit
a81b76b3e8
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=33576
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user