buildFHSUserEnv: change to root directory after chroot

Fixes #38525
This commit is contained in:
Linus Heckemann 2018-04-15 13:43:42 +01:00 committed by obadz
parent 65adfc73ad
commit 75cfbdf33b

View File

@ -118,6 +118,7 @@ int main(gint argc, gchar **argv) {
bind("/", prefix);
fail_if(chroot(prefix));
fail_if(chdir("/"));
fail_if(execvp(*argv, argv));
}