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
+1 -1
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 {