summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorrofl0r <rofl0r@users.noreply.github.com>2021-05-09 23:41:49 +0100
committerrofl0r <rofl0r@users.noreply.github.com>2021-05-09 23:41:49 +0100
commit9d815f69a4fa9baf2b2ce99fa09b12c8b5254589 (patch)
tree0121a87056fefb56f43f0d3e31ab37c5e7bce021
parentcc47fbf1f748e4be6ee2b6d0b0788e1b45b552b3 (diff)
filter: hard error when filter file doesn't exist
-rw-r--r--src/filter.c3
1 files changed, 2 insertions, 1 deletions
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;