diff options
author | Kevin Steves <stevesk@pobox.com> | 2000-10-14 13:36:13 +0000 |
---|---|---|
committer | Kevin Steves <stevesk@pobox.com> | 2000-10-14 13:36:13 +0000 |
commit | 092f2effc5a50e6aeb5059d2b02d5e7b9c03fb42 (patch) | |
tree | bbcd3917c9c8eaa4a807db4e8f8177f8bbe547af /auth-pam.c | |
parent | f16b9d277383693fe7db29702a0b9763f9f14569 (diff) |
- (stevesk) ~/.hushlogin shouldn't cause required password change to
be bypassed.
Diffstat (limited to 'auth-pam.c')
-rw-r--r-- | auth-pam.c | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -29,7 +29,7 @@ #include "xmalloc.h" #include "servconf.h" -RCSID("$Id: auth-pam.c,v 1.16 2000/10/14 05:23:11 djm Exp $"); +RCSID("$Id: auth-pam.c,v 1.17 2000/10/14 13:36:13 stevesk Exp $"); #define NEW_AUTHTOK_MSG \ "Warning: Your password has expired, please change it now" @@ -261,6 +261,12 @@ void do_pam_setcred() } } +/* accessor function for file scope static variable */ +int pam_password_change_required(void) +{ + return password_change_required; +} + /* * Have user change authentication token if pam_acct_mgmt() indicated * it was expired. This needs to be called after an interactive |