From: Stefan Schantl Date: Sat, 10 Apr 2021 16:54:35 +0000 (+0200) Subject: convert-ids-multiple-providers: Proper open the oinkmaster providers X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1fa8ad7e9614f50963d3e7dd90670c60ad2b1870;p=people%2Fstevee%2Fipfire-2.x.git convert-ids-multiple-providers: Proper open the oinkmaster providers sids file for writing. Signed-off-by: Stefan Schantl --- diff --git a/config/suricata/convert-ids-multiple-providers b/config/suricata/convert-ids-multiple-providers index 9d95a4107b..971695dd73 100644 --- a/config/suricata/convert-ids-multiple-providers +++ b/config/suricata/convert-ids-multiple-providers @@ -140,7 +140,7 @@ if (%enabled_disabled_sids) { my $oinkmaster_provider_modified_sids_file = &IDS::get_oinkmaster_provider_modified_sids_file($ruleset_provider); # Open the new file for writing. - open (FILE, $oinkmaster_provider_modified_sids_file) or die "Could not write to $oinkmaster_provider_modified_sids_file. $!\n"; + open (FILE, ">", $oinkmaster_provider_modified_sids_file) or die "Could not write to $oinkmaster_provider_modified_sids_file. $!\n"; # Write header to the files. print PROVIDER_MOD_FILE "#Autogenerated file. Any custom changes will be overwritten!\n";