Fix prefix length problem with tags

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@5507 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2007-03-12 23:55:31 +00:00
parent a306512164
commit 64c3d401e7
2 changed files with 2 additions and 2 deletions

View File

@ -723,7 +723,7 @@ log_rule_limit() # $1 = log level, $2 = chain, $3 = display Chain $4 = dispositi
local disposition=$4
local rulenum=
local limit=
local tag=${6:+$6 }
local tag=$6
local command=${7:--A}
local prefix
local base=$(chain_base $displayChain)

View File

@ -1290,7 +1290,7 @@ do_log_rule_limit() # $1 = log level, $2 = chain, $3 = display Chain $4 = dispos
fi
if [ ${#prefix} -gt 29 ]; then
prefix="$(echo $prefix | truncate 29)"
prefix=`echo "$prefix" | truncate 29`
error_message "WARNING: Log Prefix shortened to \"$prefix\""
fi