mirror of
https://github.com/ilyakooo0/nix-bundle.git
synced 2024-10-26 08:42:01 +03:00
Fixup wrong chroot
This commit is contained in:
parent
cf35dc5403
commit
6b6f897b28
4
AppRun.c
4
AppRun.c
@ -220,8 +220,8 @@ int main(int argc, char *argv[]) {
|
|||||||
update_map(map_buf, "/proc/self/gid_map");
|
update_map(map_buf, "/proc/self/gid_map");
|
||||||
|
|
||||||
// chroot to rootdir
|
// chroot to rootdir
|
||||||
if (chroot(appdir) < 0) {
|
if (chroot(rootdir) < 0) {
|
||||||
err_exit("chroot(%s)", appdir);
|
err_exit("chroot(%s)", rootdir);
|
||||||
}
|
}
|
||||||
|
|
||||||
chdir("/");
|
chdir("/");
|
||||||
|
Loading…
Reference in New Issue
Block a user