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