Skip to content

Commit

Permalink
Actually mount when mapping into /
Browse files Browse the repository at this point in the history
  • Loading branch information
theduke committed May 31, 2023
1 parent 2b1fa2f commit a4583df
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/wasi/src/runners/wasi_common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ fn prepare_filesystem(
})?;

if guest_path == Path::new("/") {
root_fs.mount_directory_entries(&guest_path, &host_fs, &host_path)?;
} else {
if let Some(parent) = guest_path.parent() {
create_dir_all(&root_fs, parent).with_context(|| {
Expand Down

0 comments on commit a4583df

Please sign in to comment.