summaryrefslogtreecommitdiff
path: root/scripts/firewall/vyatta-firewall.pl
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/firewall/vyatta-firewall.pl')
-rwxr-xr-xscripts/firewall/vyatta-firewall.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/firewall/vyatta-firewall.pl b/scripts/firewall/vyatta-firewall.pl
index dc7c702..e6fa85a 100755
--- a/scripts/firewall/vyatta-firewall.pl
+++ b/scripts/firewall/vyatta-firewall.pl
@@ -293,7 +293,7 @@ sub write_refcnt_file {
print $FILE join("\n", @lines), "\n";
close($FILE);
} else {
- system("rm $refcnt_file");
+ unlink($refcnt_file) if -e $refcnt_file;
}
}