ref: b33773def83754db54f2aeaf57bf5432b7e449a8
parent: 55d8082842367540b7c3918253c04f71fc9361bb
author: cinap_lenrek <[email protected]>
date: Wed Jun 24 14:45:58 EDT 2020
ip/tinc: run script sub-shell in its own environment
--- a/sys/src/cmd/ip/tinc.c
+++ b/sys/src/cmd/ip/tinc.c
@@ -1689,7 +1689,7 @@
if(pipe(pfd) < 0)
sysfatal("can't create pipe: %r");
- switch(rfork(RFPROC|RFFDG|RFREND|RFNOTEG)){
+ switch(rfork(RFPROC|RFFDG|RFREND|RFNOTEG|RFENVG)){
case -1:
sysfatal("can't fork: %r");
case 0: