X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fnetifd.git;a=blobdiff_plain;f=dummy%2Fnetifd-proto.sh;h=297e90498703d259ed3dc2226f0f3643b572b4c1;hp=365c4338f7ccaf38cf3cbf568243a6b01f7cfcf3;hb=e22d6c5ce7b579a3af3a5da7d692aaf952a8f651;hpb=88ae5a835d1c3184410f3023fc637d02bd58611e diff --git a/dummy/netifd-proto.sh b/dummy/netifd-proto.sh index 365c433..297e904 100755 --- 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() {