From d71ae96d165745d3a5da912f0a56f5fa8fdeb630 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Wed, 27 Sep 2006 04:29:58 +0000 Subject: Use filenamea instead of filename, filename may become a reserved word down the road. --- packages/snort/snort.inc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/snort/snort.inc b/packages/snort/snort.inc index f96d6293..18a4bcff 100644 --- a/packages/snort/snort.inc +++ b/packages/snort/snort.inc @@ -106,10 +106,10 @@ function generate_snort_conf() { /* XXX: make multi wan friendly */ $snort_ext_int = $config['installedpackages']['snort']['config'][0]['iface_array'][0]; - $text = "*/60\t* \t 1\t *\t *\t root\t /usr/bin/nice -n20 /usr/local/pkg/snort_check_for_rule_updates.php"; - $file = "/etc/crontab"; - add_text_to_file($file, $text); - remove_text_from_file($file, $text); + $text_ww = "*/60\t* \t 1\t *\t *\t root\t /usr/bin/nice -n20 /usr/local/pkg/snort_check_for_rule_updates.php"; + $filenamea = "/etc/crontab"; + remove_text_from_file($filenamea, $text_ww); + add_text_to_file($filenamea, $text_ww); exec("killall -HUP cron"); /* should we install a automatic update crontab entry? */ -- cgit v1.2.3