summaryrefslogtreecommitdiff
path: root/usr.sbin/cron
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2010-12-14 23:31:34 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2010-12-14 23:31:34 +0000
commita85b4f1accf12cd26f0c7ac2443f70db393f0f39 (patch)
tree8cbbb5ffef1a8b44f55f2bb33bdadd11c019bb34 /usr.sbin/cron
parent503f83d30566f2381156ca751b87976e816b92d3 (diff)
Treat a missing spool dir like an empty one. OK deraadt@
Diffstat (limited to 'usr.sbin/cron')
-rw-r--r--usr.sbin/cron/database.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/cron/database.c b/usr.sbin/cron/database.c
index eb18c75090f..477c39f7f0c 100644
--- a/usr.sbin/cron/database.c
+++ b/usr.sbin/cron/database.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: database.c,v 1.18 2009/10/27 23:59:51 deraadt Exp $ */
+/* $OpenBSD: database.c,v 1.19 2010/12/14 23:31:33 millert Exp $ */
/* Copyright 1988,1990,1993,1994 by Paul Vixie
* All rights reserved
@@ -48,7 +48,7 @@ load_database(cron_db *old_db) {
*/
if (stat(SPOOL_DIR, &statbuf) < OK) {
log_it("CRON", getpid(), "STAT FAILED", SPOOL_DIR);
- (void) exit(ERROR_EXIT);
+ return;
}
/* track system crontab file
@@ -88,7 +88,7 @@ load_database(cron_db *old_db) {
*/
if (!(dir = opendir(SPOOL_DIR))) {
log_it("CRON", getpid(), "OPENDIR FAILED", SPOOL_DIR);
- (void) exit(ERROR_EXIT);
+ return;
}
while (NULL != (dp = readdir(dir))) {