From a66cec125ed48c5bf9504d4884cbfd4737eeec04 Mon Sep 17 00:00:00 2001 From: hm Date: Tue, 10 Oct 2000 13:28:49 +0000 Subject: Do not exit when no holiday file is found. Issue warning and continue. --- usr.sbin/i4b/isdnd/holiday.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'usr.sbin/i4b') diff --git a/usr.sbin/i4b/isdnd/holiday.c b/usr.sbin/i4b/isdnd/holiday.c index 7bcc0b0..7e08404 100644 --- a/usr.sbin/i4b/isdnd/holiday.c +++ b/usr.sbin/i4b/isdnd/holiday.c @@ -31,7 +31,7 @@ * * $FreeBSD$ * - * last edit-date: [Mon Oct 9 11:32:28 2000] + * last edit-date: [Tue Oct 10 15:24:49 2000] * * Format: * @@ -79,8 +79,8 @@ init_holidays(char *filename) if((fp = fopen(filename, "r")) == NULL) { - log(LL_ERR, "init_holiday: error opening holidayfile %s: %s!", filename, strerror(errno)); - exit(1); + log(LL_WRN, "init_holiday: error opening holidayfile %s: %s!", filename, strerror(errno)); + return; } while((fgets(buffer, MAXBUFSZ, fp)) != NULL) -- cgit v1.1