From 416f863ea3cb15f276e7e6937ab9742ab73cbc3f Mon Sep 17 00:00:00 2001 From: teastep Date: Fri, 4 May 2007 00:21:32 +0000 Subject: [PATCH] Try to handle 'action:' correctly git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@6226 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb --- Shorewall-shell/compiler | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Shorewall-shell/compiler b/Shorewall-shell/compiler index a719fcb86..2c01184a4 100755 --- a/Shorewall-shell/compiler +++ b/Shorewall-shell/compiler @@ -1238,6 +1238,9 @@ createactionchain() # $1 = Action, including log level and tag if any set -- $(split $1) createlogactionchain $1 $2:$3 ;; + *:) + create_simple_chain ${1%:*} + ;; *:*) set -- $(split $1) @@ -1267,6 +1270,10 @@ find_logactionchain() # $1 = Action, including log level and tag if any } case $fullaction in + *:) + find_simpleaction + return + ;; *:*) level=${fullaction#*:} if [ "x$level" = xnone ]; then @@ -2129,6 +2136,9 @@ process_rule() # $1 = target loglevel= [ $target = LOG ] && return ;; + *) + [ -n "$loglevel" ] || target=${target%:*} + ;; esac loglevel=${loglevel%\!}