[git commit] su: add a delay if the password is incorrect
Denys Vlasenko
vda.linux at googlemail.com
Sun Mar 16 10:18:19 UTC 2014
commit: http://git.busybox.net/busybox/commit/?id=0e3334c8d8f021ed87d873ac95e165cde9da5e4d
branch: http://git.busybox.net/busybox/commit/?id=refs/heads/master
Signed-off-by: Romain Naour <romain.naour at openwide.fr>
Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
---
loginutils/su.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/loginutils/su.c b/loginutils/su.c
index c51f26f..f812505 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");
}
More information about the busybox-cvs
mailing list