mirror of
https://github.com/sheumann/hush.git
synced 2025-01-15 18:30:43 +00:00
s/FAIL_DELAY/LOGIN_FAIL_DELAY/
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
f8416dc6f6
commit
7d4e7a27af
@ -355,7 +355,7 @@ int login_main(int argc UNUSED_PARAM, char **argv)
|
|||||||
#endif /* ENABLE_PAM */
|
#endif /* ENABLE_PAM */
|
||||||
auth_failed:
|
auth_failed:
|
||||||
opt &= ~LOGIN_OPT_f;
|
opt &= ~LOGIN_OPT_f;
|
||||||
bb_do_delay(FAIL_DELAY);
|
bb_do_delay(LOGIN_FAIL_DELAY);
|
||||||
/* TODO: doesn't sound like correct English phrase to me */
|
/* TODO: doesn't sound like correct English phrase to me */
|
||||||
puts("Login incorrect");
|
puts("Login incorrect");
|
||||||
if (++count == 3) {
|
if (++count == 3) {
|
||||||
|
@ -28,7 +28,7 @@ static char* new_password(const struct passwd *pw, uid_t myuid, int algo)
|
|||||||
if (strcmp(encrypted, pw->pw_passwd) != 0) {
|
if (strcmp(encrypted, pw->pw_passwd) != 0) {
|
||||||
syslog(LOG_WARNING, "incorrect password for %s",
|
syslog(LOG_WARNING, "incorrect password for %s",
|
||||||
pw->pw_name);
|
pw->pw_name);
|
||||||
bb_do_delay(FAIL_DELAY);
|
bb_do_delay(LOGIN_FAIL_DELAY);
|
||||||
puts("Incorrect password");
|
puts("Incorrect password");
|
||||||
goto err_ret;
|
goto err_ret;
|
||||||
}
|
}
|
||||||
|
@ -88,8 +88,8 @@ int sulogin_main(int argc UNUSED_PARAM, char **argv)
|
|||||||
if (r == 0) {
|
if (r == 0) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
bb_do_delay(FAIL_DELAY);
|
bb_do_delay(LOGIN_FAIL_DELAY);
|
||||||
bb_error_msg("login incorrect");
|
bb_info_msg("Login incorrect");
|
||||||
}
|
}
|
||||||
memset(cp, 0, strlen(cp));
|
memset(cp, 0, strlen(cp));
|
||||||
// signal(SIGALRM, SIG_DFL);
|
// signal(SIGALRM, SIG_DFL);
|
||||||
|
@ -101,8 +101,8 @@ int vlock_main(int argc UNUSED_PARAM, char **argv)
|
|||||||
if (correct_password(pw)) {
|
if (correct_password(pw)) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
bb_do_delay(FAIL_DELAY);
|
bb_do_delay(LOGIN_FAIL_DELAY);
|
||||||
puts("Password incorrect");
|
puts("Incorrect password");
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef __linux__
|
#ifdef __linux__
|
||||||
|
Loading…
x
Reference in New Issue
Block a user