diff options
author | Thorsten Kukuk <kukuk@thkukuk.de> | 2009-06-26 12:07:11 +0000 |
---|---|---|
committer | Thorsten Kukuk <kukuk@thkukuk.de> | 2009-06-26 12:07:11 +0000 |
commit | 9c7be916c205257cbc40f4ab179ebe490ebe40f6 (patch) | |
tree | 5487b97cecb42a77b84935bc1350a57b788e9530 | |
parent | a92c17bccef85519917b91e4c181154559ecec96 (diff) |
Relevant BUGIDs: 2809661
Purpose of commit: bugfix
Commit summary:
---------------
Fix compiling with --disable-nls:
2009-06-26 Thorsten Kukuk <kukuk@thkukuk.de>
* modules/pam_lastlog/pam_lastlog.c (last_login_failed): Fix
usage of wrong variable [bug#2809661].
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | modules/pam_lastlog/pam_lastlog.c | 4 |
2 files changed, 7 insertions, 2 deletions
@@ -1,3 +1,8 @@ +2009-06-26 Thorsten Kukuk <kukuk@thkukuk.de> + + * modules/pam_lastlog/pam_lastlog.c (last_login_failed): Fix + usage of wrong variable [bug#2809661]. + 2009-06-25 Thorsten Kukuk <kukuk@thkukuk.de> * configure.in: Rename crypt_gensalt_rn to crypt_gensalt_r diff --git a/modules/pam_lastlog/pam_lastlog.c b/modules/pam_lastlog/pam_lastlog.c index 8af6b9eb..b44c1755 100644 --- a/modules/pam_lastlog/pam_lastlog.c +++ b/modules/pam_lastlog/pam_lastlog.c @@ -454,7 +454,7 @@ last_login_failed(pam_handle_t *pamh, int announce, const char *user, time_t llt goto cleanup; } } - + if (line != NULL || date != NULL || host != NULL) { /* TRANSLATORS: "Last failed login: <date> from <host> on <terminal>" */ pam_info(pamh, _("Last failed login:%s%s%s"), @@ -471,7 +471,7 @@ last_login_failed(pam_handle_t *pamh, int announce, const char *user, time_t llt failed), failed); #else - if (daysleft == 1) + if (failed == 1) retval = asprintf(&line, _("There was %d failed login attempt since the last successful login."), failed); |