summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomas Mraz <tmraz@fedoraproject.org>2020-04-30 09:51:03 +0200
committerTomas Mraz <tmraz@fedoraproject.org>2020-04-30 10:03:12 +0200
commit50ac07c5d0f0e0fe35f63b70d880d3107d1d2896 (patch)
tree10ef4645b17707f098feb099c827d3c89de75998
parent5a22e3d0ba3f6632a0bc1fdf3d21202cc8e15de1 (diff)
pam_faillock: Correct the grammar of translated strings
Also make the message the same as in pam_tally2.
-rw-r--r--modules/pam_faillock/pam_faillock.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/modules/pam_faillock/pam_faillock.c b/modules/pam_faillock/pam_faillock.c
index 98aaa6f7..94c175b4 100644
--- a/modules/pam_faillock/pam_faillock.c
+++ b/modules/pam_faillock/pam_faillock.c
@@ -646,17 +646,13 @@ faillock_message(pam_handle_t *pamh, struct options *opts)
left = opts->latest_time + opts->unlock_time - opts->now;
}
+ pam_info(pamh, _("The account is locked due to %u failed logins."),
+ (unsigned int)opts->failures);
if (left > 0) {
left = (left + 59)/60; /* minutes */
- pam_info(pamh, _("Account temporarily locked due to %d failed logins"),
- opts->failures);
pam_info(pamh, _("(%d minutes left to unlock)"), (int)left);
}
- else {
- pam_info(pamh, _("Account locked due to %d failed logins"),
- opts->failures);
- }
}
}