Fix syntax error in validate_policy() when duplicate policy detected

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@3618 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2006-03-02 23:58:56 +00:00
parent be01fd09e1
commit 35f737054a
3 changed files with 6 additions and 2 deletions

View File

@ -106,4 +106,6 @@ Changes in 3.1.x.
45) Move 'shorecap' to /usr/share/shorewall
46) Add debian prog files.
46) Add debian prog files.
47) Correct syntax error in validate_policy()

View File

@ -1504,7 +1504,7 @@ validate_policy()
chain=${client}2${server}
if is_policy_chain $chain ; then
if eval test \$${chain}_is_optional = Yes ; then
if eval test -n \"\$${chain}_is_optional\" ; then
eval ${chain}_is_optional=
else
fatal_error "Duplicate policy: $client $server $policy"

View File

@ -38,6 +38,8 @@ Problems Corrected in 3.1.9
3) An undefined function 'delete_nat' was previously called when a compiled
program was issued the 'stop' or 'clear' command.
4) A shell syntax error was reported if a duplicate policy was detected.
Other changes in 3.1.9
1) The 'redhat' distribution is now supported in the compile command's -d