diff options
author | Thorsten Kukuk <kukuk@thkukuk.de> | 2004-09-24 09:18:21 +0000 |
---|---|---|
committer | Thorsten Kukuk <kukuk@thkukuk.de> | 2004-09-24 09:18:21 +0000 |
commit | 128ded83a0d1d3b5a85b4c20a6c35d9481e23ce5 (patch) | |
tree | fdd298658b3808d85fe99fab062b911c9f2aeee6 /modules/pam_unix/pam_unix_acct.c | |
parent | c485b54636a6d93bdc9c9d82051db97d7dd53c71 (diff) | |
download | linux-pam-git-128ded83a0d1d3b5a85b4c20a6c35d9481e23ce5.tar.gz |
Relevant BUGIDs:
Purpose of commit:
Commit summary:
---------------
bugfix: Fix lot of compiler warnings
new feature: add broken_shadow option to pam_unix (patch from Linux
distributions)
Diffstat (limited to 'modules/pam_unix/pam_unix_acct.c')
-rw-r--r-- | modules/pam_unix/pam_unix_acct.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/pam_unix/pam_unix_acct.c b/modules/pam_unix/pam_unix_acct.c index 178b6037..58ba93c1 100644 --- a/modules/pam_unix/pam_unix_acct.c +++ b/modules/pam_unix/pam_unix_acct.c @@ -129,6 +129,10 @@ PAM_EXTERN int pam_sm_acct_mgmt(pam_handle_t * pamh, int flags, } if (!spent) + if (on(UNIX_BROKEN_SHADOW,ctrl)) + return PAM_SUCCESS; + + if (!spent) return PAM_AUTHINFO_UNAVAIL; /* Couldn't get username from shadow */ curdays = time(NULL) / (60 * 60 * 24); |