buildFHSUserEnv: change to root directory after chroot
Fixes #38525
Linus Heckemann 7 years ago 75cfbdf3 65adfc73
··· 118 118 bind("/", prefix); 119 119 120 120 fail_if(chroot(prefix)); 121 121 + fail_if(chdir("/")); 121 122 fail_if(execvp(*argv, argv)); 122 123 } 123 124