Open oxr463 opened 3 years ago
I changed it from . to /, because current work dir (.) may be outside the new root(/), and it is hard to detranslate path .. Furthermore, the default cwd for chroot is also / instead of .. sudo chroot / /bin/sh -c "pwd -P" # The output is `/`
I changed it from . to /, because current work dir (.) may be outside the new root(/), and it is hard to detranslate path ..
.
/
Furthermore, the default cwd for chroot is also / instead of ..
chroot
sudo chroot / /bin/sh -c "pwd -P" # The output is `/`
_Originally posted by @KB5201314 in https://github.com/proot-me/proot-rs/pull/28#discussion_r651991926_
See: https://github.com/proot-me/proot/issues/66#issuecomment-55616771
_Originally posted by @KB5201314 in https://github.com/proot-me/proot-rs/pull/28#discussion_r651991926_