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