From c1cdff0aa66d459ead5c0fad62447768273a5e73 Mon Sep 17 00:00:00 2001 From: Michael-F-Bryan Date: Thu, 23 Nov 2023 17:42:50 +0800 Subject: [PATCH] We don't need to preopen mounted directories --- lib/wasix/src/runners/wasi_common.rs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/lib/wasix/src/runners/wasi_common.rs b/lib/wasix/src/runners/wasi_common.rs index 1f499e04c91..1d6e585a899 100644 --- a/lib/wasix/src/runners/wasi_common.rs +++ b/lib/wasix/src/runners/wasi_common.rs @@ -149,10 +149,6 @@ fn build_directory_mappings( root_fs .mount(guest_path.clone(), fs, "/".into()) .with_context(|| format!("Unable to mount \"{}\"", guest_path.display()))?; - - builder - .add_preopen_dir(&guest_path) - .with_context(|| format!("Unable to preopen \"{}\"", guest_path.display()))?; } }