Skip to content

Commit

Permalink
firewall: T1241: Check file before del
Browse files Browse the repository at this point in the history
  • Loading branch information
sever-sever committed Jul 29, 2020
1 parent 90d0517 commit 9287220
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/firewall/vyatta-firewall.pl
Expand Up @@ -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;
}
}

Expand Down

0 comments on commit 9287220

Please sign in to comment.