projects
/
oweals
/
netifd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
88ae5a8
)
netifd-proto.sh: execute proto_add_host_dependency() actions in subshell to retain...
author
Jo-Philipp Wich
<jow@openwrt.org>
Mon, 18 Jun 2012 21:22:55 +0000
(23:22 +0200)
committer
Felix Fietkau
<nbd@openwrt.org>
Mon, 18 Jun 2012 21:24:56 +0000
(23:24 +0200)
dummy/netifd-proto.sh
patch
|
blob
|
history
diff --git
a/dummy/netifd-proto.sh
b/dummy/netifd-proto.sh
index 365c4338f7ccaf38cf3cbf568243a6b01f7cfcf3..297e90498703d259ed3dc2226f0f3643b572b4c1 100755
(executable)
--- a/
dummy/netifd-proto.sh
+++ b/
dummy/netifd-proto.sh
@@
-290,10
+290,14
@@
proto_add_host_dependency() {
local interface="$1"
local host="$2"
- json_init
- json_add_int action 6
- json_add_string host "$host"
- _proto_notify "$interface" -S
+ # execute in subshell to not taint callers env
+ # see tickets #11046, #11545, #11570
+ (
+ json_init
+ json_add_int action 6
+ json_add_string host "$host"
+ _proto_notify "$interface" -S
+ )
}
proto_setup_failed() {