From 044c997a0eaa3aa10b8bcb5743ebf5b26a8c32c2 Mon Sep 17 00:00:00 2001 From: Stefan Schantl Date: Sat, 10 Apr 2021 18:59:19 +0200 Subject: [PATCH] ids-functions.pl: Fix writing for used provider rulefiles. Signed-off-by: Stefan Schantl --- config/cfgroot/ids-functions.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/cfgroot/ids-functions.pl b/config/cfgroot/ids-functions.pl index 5b92edabec..2af5534c95 100644 --- a/config/cfgroot/ids-functions.pl +++ b/config/cfgroot/ids-functions.pl @@ -1346,7 +1346,7 @@ sub write_used_provider_rulefiles_file($@) { my $used_provider_rulesfile_file = &get_used_provider_rulesfile_file($provider); # Open file for used rulefiles. - open (FILE, ">$used_provider_rulesfile_file") or die "Could not write to $used_provider_rulesfile_file. $!\n"; + open (FILE, ">", "$used_provider_rulesfile_file") or die "Could not write to $used_provider_rulesfile_file. $!\n"; # Write yaml header to the file. print FILE "%YAML 1.1\n"; -- 2.39.5