Fix stupid bug in zones file alchemy -- take 2

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@2625 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2005-09-02 22:54:27 +00:00
parent 731c7d121d
commit 1905664bca

View File

@ -500,15 +500,16 @@ determine_zones()
ZONES= ZONES=
for z in $zones; do if [ -n "$parents" ]; then
if [ -z "$merged" ] && list_search $z $parents; then for z in $zones; do
ZONES="$ZONES $zone" if [ -z "$merged" ] && list_search $z $parents; then
merged=Yes ZONES="$ZONES $zone"
fi merged=Yes
ZONES="$ZONES $z" fi
ZONES="$ZONES $z"
done done
[ -n "$merged" ] || ZONES="$ZONES $zone" [ -n "$merged" ] || ZONES="$zones $zone"
} }
strip_file zones strip_file zones