diff options
author | mpp <mpp@FreeBSD.org> | 1995-08-28 21:30:59 +0000 |
---|---|---|
committer | mpp <mpp@FreeBSD.org> | 1995-08-28 21:30:59 +0000 |
commit | 684146e8cecf2a925a3b2281a218c99678a04171 (patch) | |
tree | 67278d75d3abf5f6772c71401cc931a0c8700dee /usr.sbin/cron/lib/entry.c | |
parent | 3e1e7bcd42e9e4ca3c52ddefa6bc62b4df57add2 (diff) | |
download | FreeBSD-src-684146e8cecf2a925a3b2281a218c99678a04171.zip FreeBSD-src-684146e8cecf2a925a3b2281a218c99678a04171.tar.gz |
Check for expired passwords before allowing access to the system.
Diffstat (limited to 'usr.sbin/cron/lib/entry.c')
-rw-r--r-- | usr.sbin/cron/lib/entry.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/usr.sbin/cron/lib/entry.c b/usr.sbin/cron/lib/entry.c index 13d1644..efec412 100644 --- a/usr.sbin/cron/lib/entry.c +++ b/usr.sbin/cron/lib/entry.c @@ -16,7 +16,7 @@ */ #if !defined(lint) && !defined(LINT) -static char rcsid[] = "$Id: entry.c,v 1.2 1995/04/12 19:04:26 ache Exp $"; +static char rcsid[] = "$Id: entry.c,v 1.3 1995/05/30 03:47:10 rgrimes Exp $"; #endif /* vix 26jan87 [RCS'd; rest of log is in RCS file] @@ -241,6 +241,11 @@ load_entry(file, error_func, pw, envp) Debug(DPARS, ("load_entry()...uid %d, gid %d\n",e->uid,e->gid)) } + if (pw->pw_expire && time(NULL) >= pw->pw_expire) { + ecode = e_username; + goto eof; + } + e->uid = pw->pw_uid; e->gid = pw->pw_gid; |