From ed0bbce737b53e4db06510d3ba7c357efb18d2ec Mon Sep 17 00:00:00 2001 From: teastep Date: Mon, 7 Apr 2003 21:20:46 +0000 Subject: [PATCH] Correct bug in nexted INCLUDE detection git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@534 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb --- Shorewall/functions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Shorewall/functions b/Shorewall/functions index 5bc7f263d..746a86657 100755 --- a/Shorewall/functions +++ b/Shorewall/functions @@ -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