projects
/
project
/
netifd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
netifd-proto.sh: execute proto_add_host_dependency() actions in subshell to retain...
[project/netifd.git]
/
dummy
/
netifd-proto.sh
diff --git
a/dummy/netifd-proto.sh
b/dummy/netifd-proto.sh
index
365c433
..
297e904
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"
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() {
}
proto_setup_failed() {