aboutsummaryrefslogtreecommitdiffstats
path: root/package/firewall/files
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2012-02-23 18:50:47 +0000
committerJo-Philipp Wich <jow@openwrt.org>2012-02-23 18:50:47 +0000
commit716e67dbf7ee55ec010f3188b34864fbd0b42e0a (patch)
treeff626ca21a799be3b5fd436bf5b93ebee84f99a6 /package/firewall/files
parent1b20c8b960e4a213fc49658dee72166177f06a1b (diff)
downloadupstream-716e67dbf7ee55ec010f3188b34864fbd0b42e0a.tar.gz
upstream-716e67dbf7ee55ec010f3188b34864fbd0b42e0a.tar.bz2
upstream-716e67dbf7ee55ec010f3188b34864fbd0b42e0a.zip
[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
Diffstat (limited to 'package/firewall/files')
-rw-r--r--package/firewall/files/lib/core_init.sh8
1 files changed, 7 insertions, 1 deletions
diff --git a/package/firewall/files/lib/core_init.sh b/package/firewall/files/lib/core_init.sh
index e93de1613f..035647998e 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
+ )
}