#endif /* ENABLE_PAM */
auth_failed:
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 */
puts("Login incorrect");
if (++count == 3) {
if (strcmp(encrypted, pw->pw_passwd) != 0) {
syslog(LOG_WARNING, "incorrect password for %s",
pw->pw_name);
- bb_do_delay(FAIL_DELAY);
+ bb_do_delay(LOGIN_FAIL_DELAY);
puts("Incorrect password");
goto err_ret;
}
if (r == 0) {
break;
}
- bb_do_delay(FAIL_DELAY);
- bb_error_msg("login incorrect");
+ bb_do_delay(LOGIN_FAIL_DELAY);
+ bb_info_msg("Login incorrect");
}
memset(cp, 0, strlen(cp));
// signal(SIGALRM, SIG_DFL);
if (correct_password(pw)) {
break;
}
- bb_do_delay(FAIL_DELAY);
- puts("Password incorrect");
+ bb_do_delay(LOGIN_FAIL_DELAY);
+ puts("Incorrect password");
}
#ifdef __linux__