diff options
author | 2016-01-11 14:23:50 +0000 | |
---|---|---|
committer | 2016-01-11 14:23:50 +0000 | |
commit | 95f2b4e27a8d61b0f9dbd624f26f2fa6fc6bc691 (patch) | |
tree | b774c706165c11d514e0afc33db7592fd59c9819 /usr.sbin/cron/crontab.c | |
parent | Only include sdhc_acpi.c if shdc* at acpi? is included in the kernel config. (diff) | |
download | wireguard-openbsd-95f2b4e27a8d61b0f9dbd624f26f2fa6fc6bc691.tar.xz wireguard-openbsd-95f2b4e27a8d61b0f9dbd624f26f2fa6fc6bc691.zip |
When caching the mtime of the spool directory and system crontab files,
stash a struct timespec, not just a time_t. Fixes a bug where cron
could skip re-reading the spool after two consecutive changes.
Diffstat (limited to 'usr.sbin/cron/crontab.c')
-rw-r--r-- | usr.sbin/cron/crontab.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/cron/crontab.c b/usr.sbin/cron/crontab.c index ce26afc493a..d22aae2538d 100644 --- a/usr.sbin/cron/crontab.c +++ b/usr.sbin/cron/crontab.c @@ -1,4 +1,4 @@ -/* $OpenBSD: crontab.c,v 1.91 2015/11/17 21:56:57 millert Exp $ */ +/* $OpenBSD: crontab.c,v 1.92 2016/01/11 14:23:50 millert Exp $ */ /* Copyright 1988,1990,1993,1994 by Paul Vixie * Copyright (c) 2004 by Internet Systems Consortium, Inc. ("ISC") @@ -19,6 +19,7 @@ #include <sys/types.h> #include <sys/stat.h> +#include <sys/time.h> #include <sys/wait.h> #include <bitstring.h> /* for structs.h */ |