[package] firewall: bail out if uci is used in firewall include files
authorjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Thu, 23 Feb 2012 18:50:47 +0000 (18:50 +0000)
committerjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Thu, 23 Feb 2012 18:50:47 +0000 (18:50 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@30694 3c298f89-4303-0410-b956-a3cf2f4a3e73

package/firewall/Makefile
package/firewall/files/lib/core_init.sh

index 54cb8dc..b03fca8 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 PKG_NAME:=firewall
 
 PKG_VERSION:=2
-PKG_RELEASE:=45
+PKG_RELEASE:=46
 
 include $(INCLUDE_DIR)/package.mk
 
index e93de16..0356479 100644 (file)
@@ -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 
+       )
 }
 
 
This page took 0.023063 seconds and 4 git commands to generate.