filter: hard error when filter file doesn't exist

This commit is contained in:
rofl0r 2021-05-09 23:41:49 +01:00
parent cc47fbf1f7
commit 9d815f69a4

View File

@ -61,7 +61,8 @@ void filter_init (void)
fd = fopen (config->filter, "r"); fd = fopen (config->filter, "r");
if (!fd) { if (!fd) {
return; perror ("filter file");
exit (EX_DATAERR);
} }
cflags = REG_NEWLINE | REG_NOSUB; cflags = REG_NEWLINE | REG_NOSUB;