Give warning on zone name beginning with a digit

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@2119 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2005-05-15 16:43:59 +00:00
parent 4636a5df0d
commit 9faf321c52

View File

@ -247,6 +247,9 @@ find_zones() # $1 = name of the zone file
{ {
while read zone display comments; do while read zone display comments; do
[ -n "$zone" ] && case "$zone" in [ -n "$zone" ] && case "$zone" in
[0-9*])
echo " Warning: Illegal zone name \"$zone\" in zones file ignored" 2>&2
;;
\#*) \#*)
;; ;;
$FW|all|none) $FW|all|none)