From: Stefan Schantl Date: Tue, 18 Dec 2018 13:12:52 +0000 (+0100) Subject: ids-functions.pl: Fix sub _cleanup_rulesdir() function X-Git-Tag: v2.23-core131~117^2~128 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1201c1e74695fffeae36ba8a8a6adfe422a53ddd;p=ipfire-2.x.git ids-functions.pl: Fix sub _cleanup_rulesdir() function Signed-off-by: Stefan Schantl --- diff --git a/config/cfgroot/ids-functions.pl b/config/cfgroot/ids-functions.pl index 684566731f..2cf1ad7cea 100644 --- a/config/cfgroot/ids-functions.pl +++ b/config/cfgroot/ids-functions.pl @@ -464,7 +464,7 @@ sub _cleanup_rulesdir() { # Delete the current processed file, if not, exit this function # and return an error message. - unlink($rulespath/$file) or return "Could not delete $rulespath/$file. $!\n"; + unlink("$rulespath/$file") or return "Could not delete $rulespath/$file. $!\n"; } # Return nothing;