From: Jo-Philipp Wich Date: Wed, 2 Mar 2011 19:20:29 +0000 (+0000) Subject: firewall: move include sourcing into a subshell, this makes the firewall init immune... X-Git-Tag: reboot~17360 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=13333a67423e02e4cb3e23ccf18ebdecf24a14dd;p=oweals%2Fopenwrt.git firewall: move include sourcing into a subshell, this makes the firewall init immune against exit in the include scripts SVN-Revision: 25835 --- diff --git a/package/firewall/Makefile b/package/firewall/Makefile index 3d61e09889..a8a62c287d 100644 --- a/package/firewall/Makefile +++ b/package/firewall/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=firewall PKG_VERSION:=2 -PKG_RELEASE:=22 +PKG_RELEASE:=23 include $(INCLUDE_DIR)/package.mk diff --git a/package/firewall/files/lib/core_init.sh b/package/firewall/files/lib/core_init.sh index c7e41e7ff7..42124b39bd 100644 --- a/package/firewall/files/lib/core_init.sh +++ b/package/firewall/files/lib/core_init.sh @@ -271,8 +271,10 @@ fw_load_notrack_zone() { fw_load_include() { local name="$1" - local path; config_get path ${name} path - [ -e $path ] && . $path + local path + config_get path ${name} path + + [ -e $path ] && ( . $path ) }