aboutsummaryrefslogtreecommitdiffstats
path: root/config/snort/snort_check_cron_misc.inc
diff options
context:
space:
mode:
authorbmeeks8 <bmeeks8@bellsouth.net>2014-04-15 11:08:07 -0400
committerErmal <eri@pfsense.org>2014-04-28 08:03:38 +0000
commit668f8ffabcd3f437aedc1679a96479bb3c96ebc3 (patch)
treeeeded7435e418fb6a77c603b4f29967ab8823ca4 /config/snort/snort_check_cron_misc.inc
parentb9248e556773d5f4cde0e9677c8791d453c42b4c (diff)
downloadpfsense-packages-668f8ffabcd3f437aedc1679a96479bb3c96ebc3.tar.gz
pfsense-packages-668f8ffabcd3f437aedc1679a96479bb3c96ebc3.tar.bz2
pfsense-packages-668f8ffabcd3f437aedc1679a96479bb3c96ebc3.zip
Add "@" to silence errors and history tag text to write_config() calls.
Diffstat (limited to 'config/snort/snort_check_cron_misc.inc')
-rw-r--r--config/snort/snort_check_cron_misc.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/config/snort/snort_check_cron_misc.inc b/config/snort/snort_check_cron_misc.inc
index 7b0cfe34..a5b9e65e 100644
--- a/config/snort/snort_check_cron_misc.inc
+++ b/config/snort/snort_check_cron_misc.inc
@@ -58,7 +58,7 @@ function snort_check_dir_size_limit($snortloglimitsize) {
// Truncate the Rules Update Log file if it exists
if (file_exists(RULES_UPD_LOGFILE)) {
log_error(gettext("[Snort] Truncating the Rules Update Log file..."));
- file_put_contents(RULES_UPD_LOGFILE, "");
+ @file_put_contents(RULES_UPD_LOGFILE, "");
}
// Clean-up the logs for each configured Snort instance
@@ -71,7 +71,7 @@ function snort_check_dir_size_limit($snortloglimitsize) {
// Truncate the alert log file if it exists
if (file_exists("{$snort_log_dir}/alert")) {
- file_put_contents("{$snort_log_dir}/alert", "");
+ @file_put_contents("{$snort_log_dir}/alert", "");
}
// This is needed if snort is run as snort user