mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-28 11:43:25 +02:00
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 <michael.tremer@ipfire.org>
This commit is contained in:
@@ -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(<OINKMASTER>) {
|
||||
|
||||
Reference in New Issue
Block a user