ids-functions.pl: Check if the file exists bevore adding it to the

oinkmaster provider includes file.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
This commit is contained in:
Stefan Schantl
2021-04-02 09:34:28 +02:00
parent d878d9c014
commit 1d860d89cb

View File

@@ -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";
}