From 8b72ee05e7598b516fdbe5a7d2bed1bf6842cad9 Mon Sep 17 00:00:00 2001 From: Ed Schouten Date: Mon, 18 Jan 2010 10:50:25 +0000 Subject: Also let getent(1) print values of ut_pid. --- getent.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/getent.c b/getent.c index bc76825..e6e33a0 100644 --- a/getent.c +++ b/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"); -- cgit v1.2.3-56-ge451