diff options
author | Thorsten Kukuk <kukuk@thkukuk.de> | 2006-05-02 11:12:00 +0000 |
---|---|---|
committer | Thorsten Kukuk <kukuk@thkukuk.de> | 2006-05-02 11:12:00 +0000 |
commit | 20bf460d3e1a33ffd1e86510cc6f2ab50729cc40 (patch) | |
tree | 710c49a4f4b486f77daffd9dd2adc19f9736bae6 /modules/pam_unix/pam_unix_acct.c | |
parent | 83a4eb58b6acfa6d28985a7581b8d549738f5a82 (diff) | |
download | pam-20bf460d3e1a33ffd1e86510cc6f2ab50729cc40.tar.gz pam-20bf460d3e1a33ffd1e86510cc6f2ab50729cc40.tar.bz2 pam-20bf460d3e1a33ffd1e86510cc6f2ab50729cc40.zip |
Relevant BUGIDs: 1427738
Purpose of commit: bugfix
Commit summary:
---------------
2006-05-02 Thorsten Kukuk <kukuk@suse.de>
* 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.
Diffstat (limited to 'modules/pam_unix/pam_unix_acct.c')
-rw-r--r-- | modules/pam_unix/pam_unix_acct.c | 9 |
1 files changed, 7 insertions, 2 deletions
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); } |