telnetd: write LOGIN/DEAD_PROCESS utmp records. Closes bug 1363
authorDenys Vlasenko <vda.linux@googlemail.com>
Mon, 5 Apr 2010 20:10:38 +0000 (22:10 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Mon, 5 Apr 2010 20:10:38 +0000 (22:10 +0200)
commit3a41611bc5ddeda6044e1f1e2956174b25389ce0
treeadfc8a982cf321cc859900a28e9e92c82d43caea
parent37f5bef63c0db4892d8ffa3c38a04c7998e10f83
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>
include/libbb.h
init/halt.c
libbb/utmp.c
loginutils/getty.c
loginutils/login.c
miscutils/last.c
networking/telnetd.c