diff --git a/config/cfgroot/ids-functions.pl b/config/cfgroot/ids-functions.pl index 684566731..2cf1ad7ce 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;