From 9d815f69a4fa9baf2b2ce99fa09b12c8b5254589 Mon Sep 17 00:00:00 2001 From: rofl0r Date: Sun, 9 May 2021 23:41:49 +0100 Subject: filter: hard error when filter file doesn't exist --- src/filter.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/filter.c b/src/filter.c index d70cb59..b9b5066 100644 --- a/src/filter.c +++ b/src/filter.c @@ -61,7 +61,8 @@ void filter_init (void) fd = fopen (config->filter, "r"); if (!fd) { - return; + perror ("filter file"); + exit (EX_DATAERR); } cflags = REG_NEWLINE | REG_NOSUB; -- cgit v1.2.3