From 486f1a34939825c72b2b4ad88c2318a7258990df Mon Sep 17 00:00:00 2001 From: Tom Eastep Date: Thu, 3 Dec 2009 16:16:13 -0800 Subject: [PATCH] Allow /dev/null for LOGFILE --- Shorewall-lite/shorewall-lite | 2 +- Shorewall/shorewall | 2 +- Shorewall6-lite/shorewall6-lite | 2 +- Shorewall6/shorewall6 | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Shorewall-lite/shorewall-lite b/Shorewall-lite/shorewall-lite index 974cd3296..e22af1a70 100755 --- a/Shorewall-lite/shorewall-lite +++ b/Shorewall-lite/shorewall-lite @@ -95,7 +95,7 @@ get_config() { if ( ps ax 2> /dev/null | grep -v grep | qt grep 'syslogd.*-C' ) ; then LOGREAD="logread | tac" - elif [ -f $LOGFILE ]; then + elif [ -r $LOGFILE ]; then LOGREAD="tac $LOGFILE" else echo "LOGFILE ($LOGFILE) does not exist!" >&2 diff --git a/Shorewall/shorewall b/Shorewall/shorewall index 5220dcf45..7055736a5 100755 --- a/Shorewall/shorewall +++ b/Shorewall/shorewall @@ -73,7 +73,7 @@ get_config() { if [ -n "$(syslog_circular_buffer)" ]; then LOGREAD="logread | tac" - elif [ -f $LOGFILE ]; then + elif [ -r $LOGFILE ]; then LOGREAD="tac $LOGFILE" else echo "LOGFILE ($LOGFILE) does not exist!" >&2 diff --git a/Shorewall6-lite/shorewall6-lite b/Shorewall6-lite/shorewall6-lite index 359e4edbf..de05e13b8 100755 --- a/Shorewall6-lite/shorewall6-lite +++ b/Shorewall6-lite/shorewall6-lite @@ -95,7 +95,7 @@ get_config() { if ( ps ax 2> /dev/null | grep -v grep | qt grep 'syslogd.*-C' ) ; then LOGREAD="logread | tac" - elif [ -f $LOGFILE ]; then + elif [ -r $LOGFILE ]; then LOGREAD="tac $LOGFILE" else echo "LOGFILE ($LOGFILE) does not exist!" >&2 diff --git a/Shorewall6/shorewall6 b/Shorewall6/shorewall6 index b720cb8f5..fd50a3a0b 100755 --- a/Shorewall6/shorewall6 +++ b/Shorewall6/shorewall6 @@ -73,7 +73,7 @@ get_config() { if [ -n "$(syslog_circular_buffer)" ]; then LOGREAD="logread | tac" - elif [ -f $LOGFILE ]; then + elif [ -r $LOGFILE ]; then LOGREAD="tac $LOGFILE" else echo "LOGFILE ($LOGFILE) does not exist!" >&2