From 684146e8cecf2a925a3b2281a218c99678a04171 Mon Sep 17 00:00:00 2001 From: mpp Date: Mon, 28 Aug 1995 21:30:59 +0000 Subject: Check for expired passwords before allowing access to the system. --- libexec/uucpd/uucpd.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libexec/uucpd') diff --git a/libexec/uucpd/uucpd.c b/libexec/uucpd/uucpd.c index 490e4c5..f645eea 100644 --- a/libexec/uucpd/uucpd.c +++ b/libexec/uucpd/uucpd.c @@ -159,6 +159,8 @@ void doit(struct sockaddr_in *sinp) login_incorrect(user, sinp); if (strcmp(pw->pw_shell, _PATH_UUCICO)) login_incorrect(user, sinp); + if (pw->pw_expire && time(NULL) >= pw->pw_expire) + login_incorrect(user, sinp); if (pw->pw_passwd && *pw->pw_passwd != '\0') { printf("Password: "); fflush(stdout); if (readline(passwd, sizeof passwd, 1) < 0) { -- cgit v1.1