diff options
author | Thorsten Kukuk <kukuk@thkukuk.de> | 2004-10-06 13:42:36 +0000 |
---|---|---|
committer | Thorsten Kukuk <kukuk@thkukuk.de> | 2004-10-06 13:42:36 +0000 |
commit | 3f42e813b61a2492f5b58d514aacf459f0799cdf (patch) | |
tree | 7d45281025891630178becc1d3b222e993832f74 /modules/pam_unix/pam_unix_acct.c | |
parent | b651aa8d81ecf3072cc52dcd0192905b686d17b1 (diff) | |
download | pam-3f42e813b61a2492f5b58d514aacf459f0799cdf.tar.gz pam-3f42e813b61a2492f5b58d514aacf459f0799cdf.tar.bz2 pam-3f42e813b61a2492f5b58d514aacf459f0799cdf.zip |
Relevant BUGIDs:
Purpose of commit:
Commit summary:
---------------
bugfix: Last part of fixes from Red Hat
Diffstat (limited to 'modules/pam_unix/pam_unix_acct.c')
-rw-r--r-- | modules/pam_unix/pam_unix_acct.c | 5 |
1 files changed, 2 insertions, 3 deletions
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)) |