diff options
author | Steve Langasek <steve.langasek@ubuntu.com> | 2019-01-03 19:03:53 -0800 |
---|---|---|
committer | Steve Langasek <steve.langasek@ubuntu.com> | 2019-01-03 19:03:53 -0800 |
commit | aa0448336a79d85579464f023ac87675be60abfc (patch) | |
tree | 6a460a8e09fca6fc470649aa0fe129f87d0ecb01 /modules/pam_lastlog/pam_lastlog.c | |
parent | 212b52cf29c06cc209bc8ac0540dbab1acdf1464 (diff) | |
parent | 2c201a306eb3945da808df4daf8c57895197a225 (diff) | |
download | pam-aa0448336a79d85579464f023ac87675be60abfc.tar.gz pam-aa0448336a79d85579464f023ac87675be60abfc.tar.bz2 pam-aa0448336a79d85579464f023ac87675be60abfc.zip |
New upstream version 1.1.1
Diffstat (limited to 'modules/pam_lastlog/pam_lastlog.c')
-rw-r--r-- | modules/pam_lastlog/pam_lastlog.c | 4 |
1 files changed, 2 insertions, 2 deletions
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); |