← Commit list

7d4e7a27a

Denys Vlasenko
Denys Vlasenko
2011-03-08
FAILED Duration: 218s

Subject

s/FAIL_DELAY/LOGIN_FAIL_DELAY/

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

loginutils/login.c+1 -1
@@ -355,7 +355,7 @@ int login_main(int argc UNUSED_PARAM, char **argv)
#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) {
loginutils/passwd.c+1 -1
@@ -28,7 +28,7 @@ static char* new_password(const struct passwd *pw, uid_t myuid, int algo)
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;
}
loginutils/sulogin.c+2 -2
@@ -88,8 +88,8 @@ int sulogin_main(int argc UNUSED_PARAM, char **argv)
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);
loginutils/vlock.c+2 -2
@@ -101,8 +101,8 @@ int vlock_main(int argc UNUSED_PARAM, char **argv)
if (correct_password(pw)) {
break;
}
- bb_do_delay(FAIL_DELAY);
- puts("Password incorrect");
+ bb_do_delay(LOGIN_FAIL_DELAY);
+ puts("Incorrect password");
}
#ifdef __linux__