From 3f42e813b61a2492f5b58d514aacf459f0799cdf Mon Sep 17 00:00:00 2001 From: Thorsten Kukuk Date: Wed, 6 Oct 2004 13:42:36 +0000 Subject: Relevant BUGIDs: Purpose of commit: Commit summary: --------------- bugfix: Last part of fixes from Red Hat --- modules/pam_unix/pam_unix_acct.c | 5 ++--- 1 file changed, 2 insertions(+), 3 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 f87b13b1..2cd26792 100644 --- a/modules/pam_unix/pam_unix_acct.c +++ b/modules/pam_unix/pam_unix_acct.c @@ -123,11 +123,10 @@ PAM_EXTERN int pam_sm_acct_mgmt(pam_handle_t * pamh, int flags, setreuid( -1, save_euid ); } - } else if (!strcmp( pwent->pw_passwd, "x" )) { + } else if (_unix_shadowed (pwent)) spent = _pammodutil_getspnam (pamh, uname); - } else { + else return PAM_SUCCESS; - } if (!spent) if (on(UNIX_BROKEN_SHADOW,ctrl)) -- cgit v1.2.3