From ee9eba0569374bc2d63f53cc71277f77904700b7 Mon Sep 17 00:00:00 2001 From: Tomas Mraz Date: Wed, 17 Nov 2004 12:54:29 +0000 Subject: Relevant BUGIDs: Redhat bz 69279 Purpose of commit: bugfix Commit summary: --------------- pam_unix: Forced password change shouldn't trump account expiration --- modules/pam_unix/pam_unix_acct.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'modules/pam_unix') diff --git a/modules/pam_unix/pam_unix_acct.c b/modules/pam_unix/pam_unix_acct.c index 2cd26792..01925eaf 100644 --- a/modules/pam_unix/pam_unix_acct.c +++ b/modules/pam_unix/pam_unix_acct.c @@ -137,8 +137,7 @@ PAM_EXTERN int pam_sm_acct_mgmt(pam_handle_t * pamh, int flags, curdays = time(NULL) / (60 * 60 * 24); D(("today is %d, last change %d", curdays, spent->sp_lstchg)); - if ((curdays > spent->sp_expire) && (spent->sp_expire != -1) - && (spent->sp_lstchg != 0)) { + if ((curdays > spent->sp_expire) && (spent->sp_expire != -1)) { _log_err(LOG_NOTICE, pamh ,"account %s has expired (account expired)" ,uname); -- cgit v1.2.3