diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2010-04-05 22:10:38 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2010-04-05 22:10:38 +0200 |
commit | 3a41611bc5ddeda6044e1f1e2956174b25389ce0 (patch) | |
tree | adfc8a982cf321cc859900a28e9e92c82d43caea /include | |
parent | 37f5bef63c0db4892d8ffa3c38a04c7998e10f83 (diff) | |
download | busybox-w32-3a41611bc5ddeda6044e1f1e2956174b25389ce0.tar.gz busybox-w32-3a41611bc5ddeda6044e1f1e2956174b25389ce0.tar.bz2 busybox-w32-3a41611bc5ddeda6044e1f1e2956174b25389ce0.zip |
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>
Diffstat (limited to 'include')
-rw-r--r-- | include/libbb.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/libbb.h b/include/libbb.h index ea61701b7..f3121eb47 100644 --- a/include/libbb.h +++ b/include/libbb.h | |||
@@ -797,9 +797,11 @@ void die_if_bad_username(const char* name) FAST_FUNC; | |||
797 | #endif | 797 | #endif |
798 | 798 | ||
799 | #if ENABLE_FEATURE_UTMP | 799 | #if ENABLE_FEATURE_UTMP |
800 | void FAST_FUNC update_utmp(int new_type, const char *short_tty, const char *username, const char *opt_host); | 800 | void FAST_FUNC write_new_utmp(pid_t pid, int new_type, const char *tty_name, const char *username, const char *hostname); |
801 | void FAST_FUNC update_utmp(pid_t pid, int new_type, const char *tty_name, const char *username, const char *hostname); | ||
801 | #else | 802 | #else |
802 | # define update_utmp(new_type, short_tty, username, opt_host) ((void)0) | 803 | # define write_new_utmp(pid, new_type, tty_name, username, hostname) ((void)0) |
804 | # define update_utmp(pid, new_type, tty_name, username, hostname) ((void)0) | ||
803 | #endif | 805 | #endif |
804 | 806 | ||
805 | int execable_file(const char *name) FAST_FUNC; | 807 | int execable_file(const char *name) FAST_FUNC; |