mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-28 09:02:44 +00:00
Also let getent(1) print values of ut_pid.
This commit is contained in:
parent
943124d3f0
commit
093d0b6698
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=202559
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user