mirror of
https://gitlab.com/shorewall/code.git
synced 2024-11-24 00:23:28 +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 disposition=$4
|
||||||
local rulenum=
|
local rulenum=
|
||||||
local limit=
|
local limit=
|
||||||
local tag=${6:+$6 }
|
local tag=$6
|
||||||
local command=${7:--A}
|
local command=${7:--A}
|
||||||
local prefix
|
local prefix
|
||||||
local base=$(chain_base $displayChain)
|
local base=$(chain_base $displayChain)
|
||||||
|
@ -1290,7 +1290,7 @@ do_log_rule_limit() # $1 = log level, $2 = chain, $3 = display Chain $4 = dispos
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [ ${#prefix} -gt 29 ]; then
|
if [ ${#prefix} -gt 29 ]; then
|
||||||
prefix="$(echo $prefix | truncate 29)"
|
prefix=`echo "$prefix" | truncate 29`
|
||||||
error_message "WARNING: Log Prefix shortened to \"$prefix\""
|
error_message "WARNING: Log Prefix shortened to \"$prefix\""
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user