From: Romain Naour Date: Sun, 16 Mar 2014 10:18:19 +0000 (+0100) Subject: su: add a delay if the password is incorrect X-Git-Tag: 1_23_0~154 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=0e3334c8d8f021ed87d873ac95e165cde9da5e4d;p=oweals%2Fbusybox.git su: add a delay if the password is incorrect Signed-off-by: Romain Naour Signed-off-by: Denys Vlasenko --- diff --git a/loginutils/su.c b/loginutils/su.c index c51f26f70..f8125054a 100644 --- a/loginutils/su.c +++ b/loginutils/su.c @@ -101,6 +101,7 @@ int su_main(int argc UNUSED_PARAM, char **argv) if (ENABLE_FEATURE_SU_SYSLOG) syslog(LOG_NOTICE, "%c %s %s:%s", '-', tty, old_user, opt_username); + bb_do_delay(LOGIN_FAIL_DELAY); bb_error_msg_and_die("incorrect password"); }