diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2010-12-14 23:31:34 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2010-12-14 23:31:34 +0000 |
commit | a85b4f1accf12cd26f0c7ac2443f70db393f0f39 (patch) | |
tree | 8cbbb5ffef1a8b44f55f2bb33bdadd11c019bb34 /usr.sbin/cron/database.c | |
parent | 503f83d30566f2381156ca751b87976e816b92d3 (diff) |
Treat a missing spool dir like an empty one. OK deraadt@
Diffstat (limited to 'usr.sbin/cron/database.c')
-rw-r--r-- | usr.sbin/cron/database.c | 6 |
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))) { |