From 2a52353f3c4ac7d6be2e4b0e47678fcc3810891c Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Fri, 18 Jun 2021 15:12:53 +0000 Subject: [PATCH] general-functions.pl: Explicitely call new system function Perl seems to just "guess" that someone no longer wants to use the builtin "system" command when there is a function with the same name. I have no idea what kind of liquid they are drinking, but because of the side effects of that stuff, we explicitely call our system() function. Not that that would be necessary, but why not waste a couple more CPU cycles? Signed-off-by: Michael Tremer --- config/cfgroot/general-functions.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/cfgroot/general-functions.pl b/config/cfgroot/general-functions.pl index 96a826a154..550afcf827 100644 --- a/config/cfgroot/general-functions.pl +++ b/config/cfgroot/general-functions.pl @@ -113,7 +113,7 @@ sub log my $logmessage = $_[0]; $logmessage =~ /([\w\W]*)/; $logmessage = $1; - system('logger', '-t', $tag, $logmessage); + &system('logger', '-t', $tag, $logmessage); } sub setup_default_networks { @@ -1223,7 +1223,7 @@ sub firewall_needs_reload() { } sub firewall_reload() { - system("/usr/local/bin/firewallctrl"); + &system("/usr/local/bin/firewallctrl"); } # Function which will return the used interface for the red network zone (red0, ppp0, etc). -- 2.39.2