1
Fork 0
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:
Terts Diepraam 2025-04-21 09:39:57 +02:00 committed by GitHub
commit 993644c74b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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 {