From 20bf460d3e1a33ffd1e86510cc6f2ab50729cc40 Mon Sep 17 00:00:00 2001 From: Thorsten Kukuk Date: Tue, 2 May 2006 11:12:00 +0000 Subject: Relevant BUGIDs: 1427738 Purpose of commit: bugfix Commit summary: --------------- 2006-05-02 Thorsten Kukuk * modules/pam_unix/pam_unix_acct.c (pam_sm_acct_mgmt): Use different strings for plural or not [#1427738] * po/*.po: Adjust for pam_unix.so translation fix. --- modules/pam_unix/pam_unix_acct.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'modules/pam_unix/pam_unix_acct.c') diff --git a/modules/pam_unix/pam_unix_acct.c b/modules/pam_unix/pam_unix_acct.c index ec47d4b6..69af417c 100644 --- a/modules/pam_unix/pam_unix_acct.c +++ b/modules/pam_unix/pam_unix_acct.c @@ -317,8 +317,13 @@ PAM_EXTERN int pam_sm_acct_mgmt(pam_handle_t * pamh, int flags, pam_syslog(pamh, LOG_DEBUG, "password for user %s will expire in %d days", uname, daysleft); - snprintf(buf, sizeof (buf), _("Warning: your password will expire in %d day%.2s"), - daysleft, daysleft == 1 ? "" : "s"); + if (daysleft == 1) + snprintf(buf, sizeof (buf), + _("Warning: your password will expire in one day")); + else + snprintf(buf, sizeof (buf), + _("Warning: your password will expire in %d days"), + daysleft); _make_remark(pamh, ctrl, PAM_TEXT_INFO, buf); } -- cgit v1.2.3