diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2011-03-08 21:07:05 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2011-03-08 21:07:05 +0100 |
commit | 7d4e7a27aface177b6f6120132cdd6fd7fd371f9 (patch) | |
tree | 5d3ca386e75ebc8965a0835dea2590d079b05c15 | |
parent | f8416dc6f64244223fbcb20fe504b7a9a764e698 (diff) | |
download | busybox-w32-7d4e7a27aface177b6f6120132cdd6fd7fd371f9.tar.gz busybox-w32-7d4e7a27aface177b6f6120132cdd6fd7fd371f9.tar.bz2 busybox-w32-7d4e7a27aface177b6f6120132cdd6fd7fd371f9.zip |
s/FAIL_DELAY/LOGIN_FAIL_DELAY/
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r-- | loginutils/login.c | 2 | ||||
-rw-r--r-- | loginutils/passwd.c | 2 | ||||
-rw-r--r-- | loginutils/sulogin.c | 4 | ||||
-rw-r--r-- | loginutils/vlock.c | 4 |
4 files changed, 6 insertions, 6 deletions
diff --git a/loginutils/login.c b/loginutils/login.c index 028a099b6..5eeb0826d 100644 --- a/loginutils/login.c +++ b/loginutils/login.c | |||
@@ -355,7 +355,7 @@ int login_main(int argc UNUSED_PARAM, char **argv) | |||
355 | #endif /* ENABLE_PAM */ | 355 | #endif /* ENABLE_PAM */ |
356 | auth_failed: | 356 | auth_failed: |
357 | opt &= ~LOGIN_OPT_f; | 357 | opt &= ~LOGIN_OPT_f; |
358 | bb_do_delay(FAIL_DELAY); | 358 | bb_do_delay(LOGIN_FAIL_DELAY); |
359 | /* TODO: doesn't sound like correct English phrase to me */ | 359 | /* TODO: doesn't sound like correct English phrase to me */ |
360 | puts("Login incorrect"); | 360 | puts("Login incorrect"); |
361 | if (++count == 3) { | 361 | if (++count == 3) { |
diff --git a/loginutils/passwd.c b/loginutils/passwd.c index 728e61867..f3928cecc 100644 --- a/loginutils/passwd.c +++ b/loginutils/passwd.c | |||
@@ -28,7 +28,7 @@ static char* new_password(const struct passwd *pw, uid_t myuid, int algo) | |||
28 | if (strcmp(encrypted, pw->pw_passwd) != 0) { | 28 | if (strcmp(encrypted, pw->pw_passwd) != 0) { |
29 | syslog(LOG_WARNING, "incorrect password for %s", | 29 | syslog(LOG_WARNING, "incorrect password for %s", |
30 | pw->pw_name); | 30 | pw->pw_name); |
31 | bb_do_delay(FAIL_DELAY); | 31 | bb_do_delay(LOGIN_FAIL_DELAY); |
32 | puts("Incorrect password"); | 32 | puts("Incorrect password"); |
33 | goto err_ret; | 33 | goto err_ret; |
34 | } | 34 | } |
diff --git a/loginutils/sulogin.c b/loginutils/sulogin.c index 307536721..0e5b59433 100644 --- a/loginutils/sulogin.c +++ b/loginutils/sulogin.c | |||
@@ -88,8 +88,8 @@ int sulogin_main(int argc UNUSED_PARAM, char **argv) | |||
88 | if (r == 0) { | 88 | if (r == 0) { |
89 | break; | 89 | break; |
90 | } | 90 | } |
91 | bb_do_delay(FAIL_DELAY); | 91 | bb_do_delay(LOGIN_FAIL_DELAY); |
92 | bb_error_msg("login incorrect"); | 92 | bb_info_msg("Login incorrect"); |
93 | } | 93 | } |
94 | memset(cp, 0, strlen(cp)); | 94 | memset(cp, 0, strlen(cp)); |
95 | // signal(SIGALRM, SIG_DFL); | 95 | // signal(SIGALRM, SIG_DFL); |
diff --git a/loginutils/vlock.c b/loginutils/vlock.c index 0d0f3bca2..3299afa50 100644 --- a/loginutils/vlock.c +++ b/loginutils/vlock.c | |||
@@ -101,8 +101,8 @@ int vlock_main(int argc UNUSED_PARAM, char **argv) | |||
101 | if (correct_password(pw)) { | 101 | if (correct_password(pw)) { |
102 | break; | 102 | break; |
103 | } | 103 | } |
104 | bb_do_delay(FAIL_DELAY); | 104 | bb_do_delay(LOGIN_FAIL_DELAY); |
105 | puts("Password incorrect"); | 105 | puts("Incorrect password"); |
106 | } | 106 | } |
107 | 107 | ||
108 | #ifdef __linux__ | 108 | #ifdef __linux__ |