diff options
| author | Mike Pritchard <mpp@FreeBSD.org> | 1995-08-28 21:30:59 +0000 |
|---|---|---|
| committer | Mike Pritchard <mpp@FreeBSD.org> | 1995-08-28 21:30:59 +0000 |
| commit | ae532ecb79a736724b77e8ceab00bb73ea1e3e18 (patch) | |
| tree | 67278d75d3abf5f6772c71401cc931a0c8700dee /usr.sbin/cron | |
| parent | d1017b80bf6700bda12884c8a6c4d7c8793900de (diff) | |
Notes
Diffstat (limited to 'usr.sbin/cron')
| -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 13d1644c0ef0..efec41255d0c 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; |
