mirror of https://github.com/mirror/busybox.git
su: add a delay if the password is incorrect
Signed-off-by: Romain Naour <romain.naour@openwide.fr> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>1_23_stable
parent
ac03a40cba
commit
0e3334c8d8
|
@ -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");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue