mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-09 18:45:54 +02:00
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:
@@ -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";
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user