summaryrefslogtreecommitdiff
path: root/auth-passwd.c
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2004-02-11 18:48:52 +1100
committerDarren Tucker <dtucker@zip.com.au>2004-02-11 18:48:52 +1100
commitcee6d4cf5ac447aaba72972cc8ce835ca2378417 (patch)
tree9113041af0d1f0ce6ae326abff5d43c4c04239e5 /auth-passwd.c
parent13a707b60da56258d91170010d9fa1f75ef18eb0 (diff)
downloadopenssh-git-cee6d4cf5ac447aaba72972cc8ce835ca2378417.tar.gz
- (dtucker) [auth-passwd.c auth-shadow.c] Only enable shadow expiry check
if HAS_SHADOW_EXPIRY is set.
Diffstat (limited to 'auth-passwd.c')
-rw-r--r--auth-passwd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/auth-passwd.c b/auth-passwd.c
index e434a21e..28f29cc6 100644
--- a/auth-passwd.c
+++ b/auth-passwd.c
@@ -97,7 +97,7 @@ auth_password(Authctxt *authctxt, const char *password)
return ok;
}
#endif
-#ifdef USE_SHADOW
+#if defined(USE_SHADOW) && defined(HAS_SHADOW_EXPIRE)
if (auth_shadow_pwexpired(authctxt)) {
disable_forwarding();
authctxt->force_pwchange = 1;