From: Jan Paul Tuecking Date: Wed, 22 Jul 2009 17:08:15 +0000 (+0200) Subject: Revert "Fixed problems with ids page." X-Git-Url: http://git.ipfire.org/?p=people%2Fteissler%2Fipfire-2.x.git;a=commitdiff_plain;h=d192af92100ad3a7a712e2b22b3a12342b68a907 Revert "Fixed problems with ids page." This reverts commit 67103da2a07e908d6e33700f03e94980afe4e978. --- diff --git a/html/cgi-bin/ids.cgi b/html/cgi-bin/ids.cgi index 5d2da2185..1cf5b8dec 100644 --- a/html/cgi-bin/ids.cgi +++ b/html/cgi-bin/ids.cgi @@ -96,7 +96,7 @@ if (-e "/etc/snort/snort.conf") { open(FILE, "/etc/snort/snort.conf") or die 'Unable to read snort config file.'; @snortconfig = ; close(FILE); - open(FILE, "/etc/snort/snort.conf") or die 'Unable to write snort config file.'; + open(FILE, ">/etc/snort/snort.conf") or die 'Unable to write snort config file.'; my @rules = `cd /etc/snort/rules/ && ls *.rules`; # With this loop the rule might be display with correct rulepath set foreach (@rules) {