From edfeb23ba75ba32fcd4153d5fee953ab8e1a3757 Mon Sep 17 00:00:00 2001 From: teastep Date: Tue, 17 Aug 2004 18:12:04 +0000 Subject: [PATCH] Fix zone determination git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@1550 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb --- Shorewall2/functions | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Shorewall2/functions b/Shorewall2/functions index ebbf5497d..bb285d2fc 100755 --- a/Shorewall2/functions +++ b/Shorewall2/functions @@ -240,7 +240,7 @@ find_zones() # $1 = name of the zone file \#*) ;; $FW) - echo "Reserved zone name \"$zone\" in zones file ignored" >&2 + echo " Warning: Reserved zone name \"$zone\" in zones file ignored" >&2 ;; *) echo $zone @@ -277,6 +277,8 @@ determine_zones() ;; *) esac + + [ ${#zone} -gt 5 ] && echo " Warning: Zone name longer than 5 characters: $zone" 2> /tmp/trace eval ${zone}_display=\$dsply newzones="$newzones $zone" done