From: Michael Tremer Date: Mon, 17 May 2021 18:43:56 +0000 (+0100) Subject: firewall.cgi: Use new system commands X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=100983bdabbca3efc97650fefc501e4609adb642;p=people%2Fstevee%2Fipfire-2.x.git firewall.cgi: Use new system commands Signed-off-by: Michael Tremer --- diff --git a/html/cgi-bin/firewall.cgi b/html/cgi-bin/firewall.cgi index 4f4d63cc8d..70dee8d3cc 100644 --- a/html/cgi-bin/firewall.cgi +++ b/html/cgi-bin/firewall.cgi @@ -38,11 +38,11 @@ require "${General::swroot}/header.pl"; require "${General::swroot}/location-functions.pl"; require "/usr/lib/firewall/firewall-lib.pl"; -unless (-d "${General::swroot}/firewall") { system("mkdir ${General::swroot}/firewall"); } -unless (-e "${General::swroot}/firewall/settings") { system("touch ${General::swroot}/firewall/settings"); } -unless (-e "${General::swroot}/firewall/config") { system("touch ${General::swroot}/firewall/config"); } -unless (-e "${General::swroot}/firewall/input") { system("touch ${General::swroot}/firewall/input"); } -unless (-e "${General::swroot}/firewall/outgoing") { system("touch ${General::swroot}/firewall/outgoing"); } +unless (-d "${General::swroot}/firewall") { &General::system("mkdir", "${General::swroot}/firewall"); } +unless (-e "${General::swroot}/firewall/settings") { &General::system("touch", "${General::swroot}/firewall/settings"); } +unless (-e "${General::swroot}/firewall/config") { &General::system("touch", "${General::swroot}/firewall/config"); } +unless (-e "${General::swroot}/firewall/input") { &General::system("touch", "${General::swroot}/firewall/input"); } +unless (-e "${General::swroot}/firewall/outgoing") { &General::system("touch", "${General::swroot}/firewall/outgoing"); } my %fwdfwsettings=(); my %selected=() ;