diff options
Diffstat (limited to 'auth.c')
-rw-r--r-- | auth.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -98,8 +98,8 @@ allowed_user(struct passwd * pw) | |||
98 | return 0; | 98 | return 0; |
99 | 99 | ||
100 | /* Check password expiry */ | 100 | /* Check password expiry */ |
101 | if ((spw->sp_lstchg > 0) && (spw->sp_inact > 0) && | 101 | if ((spw->sp_lstchg > 0) && (spw->sp_max > 0) && |
102 | (days > (spw->sp_lstchg + spw->sp_inact))) | 102 | (days > (spw->sp_lstchg + spw->sp_max))) |
103 | return 0; | 103 | return 0; |
104 | } | 104 | } |
105 | #else | 105 | #else |