1
Fork 0
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:
Jonas Platte 2025-04-20 22:12:21 +02:00
parent b009cae5a8
commit 25ce0badf1
No known key found for this signature in database
GPG key ID: 7D261D771D915378

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 {