aboutsummaryrefslogtreecommitdiffstats
path: root/config/suricata/suricata_check_for_rule_updates.php
diff options
context:
space:
mode:
authorbmeeks8 <bmeeks8@bellsouth.net>2014-09-20 18:03:43 -0400
committerbmeeks8 <bmeeks8@bellsouth.net>2014-12-15 12:04:37 -0500
commit16e975b4421e04052b7f87d6d65690ca4c57119f (patch)
tree4a4f30fe924fa9d58d1ed248501ff5603a4052db /config/suricata/suricata_check_for_rule_updates.php
parentb1d0505eef8c0d30e20adb2d514f7f135acc5e9d (diff)
downloadpfsense-packages-16e975b4421e04052b7f87d6d65690ca4c57119f.tar.gz
pfsense-packages-16e975b4421e04052b7f87d6d65690ca4c57119f.tar.bz2
pfsense-packages-16e975b4421e04052b7f87d6d65690ca4c57119f.zip
Replace calls to @unlink with unlink_if_exists().
Diffstat (limited to 'config/suricata/suricata_check_for_rule_updates.php')
-rw-r--r--config/suricata/suricata_check_for_rule_updates.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/config/suricata/suricata_check_for_rule_updates.php b/config/suricata/suricata_check_for_rule_updates.php
index b38ebf3d..6d4e518c 100644
--- a/config/suricata/suricata_check_for_rule_updates.php
+++ b/config/suricata/suricata_check_for_rule_updates.php
@@ -115,7 +115,7 @@ if ($etpro == "on") {
$emergingthreats_url .= "{$etproid}/suricata/";
$et_name = "Emerging Threats Pro";
$et_md5_remove = ET_DNLD_FILENAME . ".md5";
- @unlink("{$suricatadir}{$et_md5_remove}");
+ unlink_if_exists("{$suricatadir}{$et_md5_remove}");
}
else {
$emergingthreats_filename = ET_DNLD_FILENAME;
@@ -126,7 +126,7 @@ else {
$emergingthreats_url .= "suricata/";
$et_name = "Emerging Threats Open";
$et_md5_remove = ETPRO_DNLD_FILENAME . ".md5";
- @unlink("{$suricatadir}{$et_md5_remove}");
+ unlink_if_exists("{$suricatadir}{$et_md5_remove}");
}
// Set a common flag for all Emerging Threats rules (open and pro).