telnetd: write LOGIN/DEAD_PROCESS utmp records. Closes bug 1363
function old new delta write_new_utmp - 253 +253 skip_dev_pfx - 30 +30 handle_sigchld 42 72 +30 telnetd_main 1650 1673 +23 make_new_session 415 438 +23 ... login_main 1140 1148 +8 update_utmp 337 313 -24 write_wtmp 220 154 -66 ------------------------------------------------------------------------------ (add/remove: 2/0 grow/shrink: 11/6 up/down: 406/-115) Total: ~291 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
@ -92,7 +92,8 @@ int last_main(int argc UNUSED_PARAM, char **argv UNUSED_PARAM)
|
||||
goto next;
|
||||
}
|
||||
if (ut.ut_type != DEAD_PROCESS
|
||||
&& ut.ut_user[0] && ut.ut_line[0]
|
||||
&& ut.ut_user[0]
|
||||
&& ut.ut_line[0]
|
||||
) {
|
||||
ut.ut_type = USER_PROCESS;
|
||||
}
|
||||
|
Reference in New Issue
Block a user