Skip to content

Commit

Permalink
buildFHSUserEnv: change to root directory after chroot
Browse files Browse the repository at this point in the history
Fixes #38525
  • Loading branch information
lheckemann authored and obadz committed Apr 28, 2018
1 parent 65adfc7 commit 75cfbdf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkgs/build-support/build-fhs-userenv/chrootenv/chrootenv.c
Expand Up @@ -118,6 +118,7 @@ int main(gint argc, gchar **argv) {
bind("/", prefix);

fail_if(chroot(prefix));
fail_if(chdir("/"));
fail_if(execvp(*argv, argv));
}

Expand Down

0 comments on commit 75cfbdf

Please sign in to comment.