mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 11:37:44 +00:00
Merge pull request #7803 from jplatte/chroot
Fix chroot trying to change into non-existent directory
This commit is contained in:
commit
993644c74b
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 err == 0 {
|
||||||
if !skip_chdir {
|
if !skip_chdir {
|
||||||
std::env::set_current_dir(root).unwrap();
|
std::env::set_current_dir("/").unwrap();
|
||||||
}
|
}
|
||||||
Ok(())
|
Ok(())
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue