diff options
author | bmeeks8 <bmeeks8@bellsouth.net> | 2014-01-12 00:25:54 -0500 |
---|---|---|
committer | bmeeks8 <bmeeks8@bellsouth.net> | 2014-01-12 00:25:54 -0500 |
commit | c3b3ace436cfc9f0cc0ea7e5909c58582b7ed658 (patch) | |
tree | 123a04e6d47eb099d570682c142e6f93922a3e2e /config/snort/snort_download_updates.php | |
parent | ba3edc934faf8887fd5ea9e785392d84f2cd288c (diff) | |
download | pfsense-packages-c3b3ace436cfc9f0cc0ea7e5909c58582b7ed658.tar.gz pfsense-packages-c3b3ace436cfc9f0cc0ea7e5909c58582b7ed658.tar.bz2 pfsense-packages-c3b3ace436cfc9f0cc0ea7e5909c58582b7ed658.zip |
Ensure conf_mount_rw() and conf_mount_ro() are used where needed.
Diffstat (limited to 'config/snort/snort_download_updates.php')
-rwxr-xr-x | config/snort/snort_download_updates.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/config/snort/snort_download_updates.php b/config/snort/snort_download_updates.php index 5c9b8210..fc97ab96 100755 --- a/config/snort/snort_download_updates.php +++ b/config/snort/snort_download_updates.php @@ -87,8 +87,10 @@ if (file_exists("{$snortdir}/{$snort_community_rules_filename}.md5")) /* Check for postback to see if we should clear the update log file. */ if (isset($_POST['clear'])) { + conf_mount_rw(); if (file_exists("{$snort_rules_upd_log}")) mwexec("/bin/rm -f {$snort_rules_upd_log}"); + conf_mount_ro(); } if (isset($_POST['update'])) { |