mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 11:37:44 +00:00
Fix chroot trying to change into non-existent directory
This commit is contained in:
parent
b009cae5a8
commit
25ce0badf1
1 changed files with 1 additions and 1 deletions
|
@ -448,7 +448,7 @@ fn enter_chroot(root: &Path, skip_chdir: bool) -> UResult<()> {
|
|||
|
||||
if err == 0 {
|
||||
if !skip_chdir {
|
||||
std::env::set_current_dir(root).unwrap();
|
||||
std::env::set_current_dir("/").unwrap();
|
||||
}
|
||||
Ok(())
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue