summaryrefslogtreecommitdiffstats
path: root/auth-pam.c
diff options
context:
space:
mode:
authorKevin Steves <stevesk@pobox.com>2000-10-14 13:36:13 +0000
committerKevin Steves <stevesk@pobox.com>2000-10-14 13:36:13 +0000
commit092f2effc5a50e6aeb5059d2b02d5e7b9c03fb42 (patch)
treebbcd3917c9c8eaa4a807db4e8f8177f8bbe547af /auth-pam.c
parentf16b9d277383693fe7db29702a0b9763f9f14569 (diff)
- (stevesk) ~/.hushlogin shouldn't cause required password change to
be bypassed.
Diffstat (limited to 'auth-pam.c')
-rw-r--r--auth-pam.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/auth-pam.c b/auth-pam.c
index ab20782f..5bb30025 100644
--- a/auth-pam.c
+++ b/auth-pam.c
@@ -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