ip/tinc: run script sub-shell in its own environment

This commit is contained in:
cinap_lenrek 2020-06-24 18:45:58 +02:00
parent 55d8082842
commit b33773def8

View file

@ -1689,7 +1689,7 @@ main(int argc, char *argv[])
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: