diff options
author | Denys Vlasenko | 2020-11-29 11:32:48 +0100 |
---|---|---|
committer | Denys Vlasenko | 2020-11-29 11:32:48 +0100 |
commit | 87bd558f3f0452ed62f2686472e03a1be4a6e36d (patch) | |
tree | 46fb42606d1d8ba65211e5e2f4261830a01b8c00 /loginutils/vlock.c | |
parent | 32a8f70ac1caa4037b63747c0c0a5086953ea668 (diff) | |
download | busybox-87bd558f3f0452ed62f2686472e03a1be4a6e36d.zip busybox-87bd558f3f0452ed62f2686472e03a1be4a6e36d.tar.gz |
libbb: bb_do_delay(3) -> pause_after_failed_login(), and stop looping there
function old new delta
pause_after_failed_login - 9 +9
vlock_main 358 353 -5
sulogin_main 252 247 -5
su_main 484 479 -5
passwd_main 936 931 -5
login_main 967 962 -5
bb_do_delay 68 - -68
------------------------------------------------------------------------------
(add/remove: 1/1 grow/shrink: 0/5 up/down: 9/-93) Total: -84 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'loginutils/vlock.c')
-rw-r--r-- | loginutils/vlock.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/loginutils/vlock.c b/loginutils/vlock.c index 9e319fe..334b7d2 100644 --- a/loginutils/vlock.c +++ b/loginutils/vlock.c @@ -120,7 +120,7 @@ int vlock_main(int argc UNUSED_PARAM, char **argv) if (ask_and_check_password(pw) > 0) { break; } - bb_do_delay(LOGIN_FAIL_DELAY); + pause_after_failed_login(); puts("Incorrect password"); } |