summaryrefslogtreecommitdiff
path: root/auth-passwd.c
diff options
context:
space:
mode:
authordtucker <dtucker>2004-02-11 07:48:52 +0000
committerdtucker <dtucker>2004-02-11 07:48:52 +0000
commit300a51891ca899374534f67e1ab06ae265ef2e53 (patch)
tree5ec8a0f89540401a4b53f6b731625f83b1794d49 /auth-passwd.c
parentd0f5aebe911fe4c442e43d9bd18bf247ef172400 (diff)
downloadopenssh-300a51891ca899374534f67e1ab06ae265ef2e53.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;