mirror of
https://gitlab.com/shorewall/code.git
synced 2024-11-27 10:03:41 +01:00
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:
parent
a306512164
commit
64c3d401e7
@ -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)
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user