forked from extern/shorewall_code
Correct bug in nexted INCLUDE detection
git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@534 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
parent
549ca9e84e
commit
ed0bbce737
@ -192,7 +192,7 @@ read_file() # $1 = file name, $2 = nest count
|
||||
while read first rest; do
|
||||
if [ "x$first" = "xINCLUDE" ]; then
|
||||
if [ $2 -lt 4 ]; then
|
||||
read_file `find_file ${rest%#*}` $(($count + 1))
|
||||
read_file `find_file ${rest%#*}` $(($2 + 1))
|
||||
else
|
||||
echo " WARNING: INCLUDE in $1 ignored (nested too deeply)" >&2
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user