Author: ed
Date: Mon Jan 18 10:50:25 2010
New Revision: 202559
URL: http://svn.freebsd.org/changeset/base/202559

Log:
  Also let getent(1) print values of ut_pid.

Modified:
  head/usr.bin/getent/getent.c

Modified: head/usr.bin/getent/getent.c
==============================================================================
--- head/usr.bin/getent/getent.c        Mon Jan 18 10:30:11 2010        
(r202558)
+++ head/usr.bin/getent/getent.c        Mon Jan 18 10:50:25 2010        
(r202559)
@@ -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");
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to