From 1d860d89cb59ec4e1b629d632be9bfa9e7ceb24c Mon Sep 17 00:00:00 2001 From: Stefan Schantl Date: Fri, 2 Apr 2021 09:34:28 +0200 Subject: [PATCH] ids-functions.pl: Check if the file exists bevore adding it to the oinkmaster provider includes file. Signed-off-by: Stefan Schantl --- config/cfgroot/ids-functions.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/cfgroot/ids-functions.pl b/config/cfgroot/ids-functions.pl index 28fbc2654d..db5ef46660 100644 --- a/config/cfgroot/ids-functions.pl +++ b/config/cfgroot/ids-functions.pl @@ -946,8 +946,8 @@ sub alter_oinkmaster_provider_includes_file ($$) { print FILE "$line\n"; } - # Add the provider to the file if requested. - if ($action eq "add") { + # Check if the file exists and add the provider if requested. + if ((-f $provider_modified_sids_file) && ($action eq "add")) { print FILE "include $provider_modified_sids_file\n"; } -- 2.39.2