summaryrefslogtreecommitdiff
path: root/usr.bin/getent
diff options
context:
space:
mode:
authorEd Schouten <ed@FreeBSD.org>2010-01-18 10:50:25 +0000
committerEd Schouten <ed@FreeBSD.org>2010-01-18 10:50:25 +0000
commit093d0b669880b3d76602cd8bf97765257f54c585 (patch)
tree6933698f949e0e3e0c7222bca41773882bece6c1 /usr.bin/getent
parent943124d3f07508e70084c55845f35b9091c0ab74 (diff)
downloadsrc-test-093d0b669880b3d76602cd8bf97765257f54c585.tar.gz
src-test-093d0b669880b3d76602cd8bf97765257f54c585.zip
Also let getent(1) print values of ut_pid.
Notes
Notes: svn path=/head/; revision=202559
Diffstat (limited to 'usr.bin/getent')
-rw-r--r--usr.bin/getent/getent.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/getent/getent.c b/usr.bin/getent/getent.c
index bc76825dd4492..e6e33a0a430d5 100644
--- a/usr.bin/getent/getent.c
+++ b/usr.bin/getent/getent.c
@@ -601,13 +601,13 @@ utmpxprint(const struct utmpx *ut)
case USER_PROCESS:
printf("user process: id=\"");
UTMPXPRINTID;
- printf("\" user=\"%s\" line=\"%s\" host=\"%s\"\n",
- ut->ut_user, ut->ut_line, ut->ut_host);
+ printf("\" pid=\"%d\" user=\"%s\" line=\"%s\" host=\"%s\"\n",
+ ut->ut_pid, ut->ut_user, ut->ut_line, ut->ut_host);
break;
case DEAD_PROCESS:
printf("dead process: id=\"");
UTMPXPRINTID;
- printf("\"\n");
+ printf("\" pid=\"%d\"\n", ut->ut_pid);
break;
default:
printf("unknown record type\n");