diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2011-03-02 19:20:29 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2011-03-02 19:20:29 +0000 |
commit | 13333a67423e02e4cb3e23ccf18ebdecf24a14dd (patch) | |
tree | 3a411abe76caf890c02a982dc2f50a5b4e561450 /package/firewall/files | |
parent | d1f44a759855321c375c959f61f0bdfe1f9790ec (diff) | |
download | upstream-13333a67423e02e4cb3e23ccf18ebdecf24a14dd.tar.gz upstream-13333a67423e02e4cb3e23ccf18ebdecf24a14dd.tar.bz2 upstream-13333a67423e02e4cb3e23ccf18ebdecf24a14dd.zip |
firewall: move include sourcing into a subshell, this makes the firewall init immune against exit in the include scripts
SVN-Revision: 25835
Diffstat (limited to 'package/firewall/files')
-rw-r--r-- | package/firewall/files/lib/core_init.sh | 6 |
1 files changed, 4 insertions, 2 deletions
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 ) } |