]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
ids-functions.pl: Fix sub _cleanup_rulesdir() function
authorStefan Schantl <stefan.schantl@ipfire.org>
Tue, 18 Dec 2018 13:12:52 +0000 (14:12 +0100)
committerStefan Schantl <stefan.schantl@ipfire.org>
Tue, 18 Dec 2018 13:12:52 +0000 (14:12 +0100)
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
config/cfgroot/ids-functions.pl

index 684566731fddf635a684d9bf8ed212f946d03f55..2cf1ad7cea81179002f328686a033fd245714397 100644 (file)
@@ -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;