From 0ccb4cc6a9ed1da003369aca46a35cb15eefad2c Mon Sep 17 00:00:00 2001 From: jow Date: Thu, 23 Feb 2012 18:50:47 +0000 Subject: [package] firewall: bail out if uci is used in firewall include files git-svn-id: svn://svn.openwrt.org/openwrt/trunk@30694 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- package/firewall/files/lib/core_init.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'package/firewall/files/lib') diff --git a/package/firewall/files/lib/core_init.sh b/package/firewall/files/lib/core_init.sh index e93de1613..035647998 100644 --- a/package/firewall/files/lib/core_init.sh +++ b/package/firewall/files/lib/core_init.sh @@ -288,7 +288,13 @@ fw_load_include() { local path config_get path ${name} path - [ -e $path ] && ( . $path ) + [ -e $path ] && ( + config() { + fw_log error "You cannot use UCI in firewall includes!" >&2 + exit 1 + } + . $path + ) } -- cgit v1.2.3