Skip to content

Commit 57f9dc5

Browse files
fix: ignore broken symlinks in /run
1 parent a6fe0bd commit 57f9dc5

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/main.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,9 @@ fn setup_host_root_dirs(bwrap: &mut BwrapBuilder) -> anyhow::Result<()> {
449449
continue;
450450
}
451451

452-
bwrap.bind(&entry_path, &entry_path);
452+
if fs::exists(&entry_path).is_ok_and(|exists| exists) {
453+
bwrap.bind(&entry_path, &entry_path);
454+
}
453455
}
454456
}
455457

0 commit comments

Comments
 (0)