summaryrefslogtreecommitdiff
path: root/lib/libpam/modules/pam_unix/pam_unix.c
diff options
context:
space:
mode:
authorAndrey A. Chernov <ache@FreeBSD.org>2002-01-19 09:23:36 +0000
committerAndrey A. Chernov <ache@FreeBSD.org>2002-01-19 09:23:36 +0000
commit3195cd67125d1b2311df1630fb6d3d75cc8fe73f (patch)
treeb7ff5bd00f0420707690e63b2250dcbd3a715ec9 /lib/libpam/modules/pam_unix/pam_unix.c
parenta0fc79c33467785231297f9fef935ac62d5deb56 (diff)
Notes
Diffstat (limited to 'lib/libpam/modules/pam_unix/pam_unix.c')
-rw-r--r--lib/libpam/modules/pam_unix/pam_unix.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/libpam/modules/pam_unix/pam_unix.c b/lib/libpam/modules/pam_unix/pam_unix.c
index 791bb49c98c4..7afa45a9ac2f 100644
--- a/lib/libpam/modules/pam_unix/pam_unix.c
+++ b/lib/libpam/modules/pam_unix/pam_unix.c
@@ -351,8 +351,7 @@ pam_sm_chauthtok(pam_handle_t *pamh, int flags, int argc, const char **argv)
PAM_LOG("Encrypted password 1 is: %s", encrypted);
PAM_LOG("Encrypted password 2 is: %s", pwd->pw_passwd);
- if (strcmp(encrypted, pwd->pw_passwd) != 0 ||
- (pwd->pw_expire && time(NULL) >= pwd->pw_expire))
+ if (strcmp(encrypted, pwd->pw_passwd) != 0)
PAM_RETURN(PAM_AUTH_ERR);
retval = pam_set_item(pamh, PAM_OLDAUTHTOK, (const void *)pass);