From: Michael Tremer Date: Wed, 17 Apr 2019 19:59:55 +0000 (+0100) Subject: suricata: Redirect oinkmaster output to perl function X-Git-Tag: v2.23-core131~18 X-Git-Url: http://git.ipfire.org/?p=ipfire-2.x.git;a=commitdiff_plain;h=e96adc77972108de9cb8b4b6c0f7fbad07b76035 suricata: Redirect oinkmaster output to perl function The output was written to stderr before and landed in apache's error log where we do not want it. Fixes: #12004 Signed-off-by: Michael Tremer --- diff --git a/config/cfgroot/ids-functions.pl b/config/cfgroot/ids-functions.pl index 016c0e49d6..425b5e5a09 100644 --- a/config/cfgroot/ids-functions.pl +++ b/config/cfgroot/ids-functions.pl @@ -324,7 +324,7 @@ sub oinkmaster () { openlog('oinkmaster', 'cons,pid', 'user'); # Call oinkmaster to generate ruleset. - open(OINKMASTER, "/usr/local/bin/oinkmaster.pl -v -s -u file://$rulestarball -C $settingsdir/oinkmaster.conf -o $rulespath|") or die "Could not execute oinkmaster $!\n"; + open(OINKMASTER, "/usr/local/bin/oinkmaster.pl -v -s -u file://$rulestarball -C $settingsdir/oinkmaster.conf -o $rulespath 2>&1 |") or die "Could not execute oinkmaster $!\n"; # Log output of oinkmaster to syslog. while() {