diff --git a/lib/wasi/src/state/mod.rs b/lib/wasi/src/state/mod.rs index e6e46395a40..69f83ee548e 100644 --- a/lib/wasi/src/state/mod.rs +++ b/lib/wasi/src/state/mod.rs @@ -1093,7 +1093,8 @@ impl WasiFs { { cur_inode = *entry; } else { - return Err(Errno::Noent); + // Root is not capable of having something other then preopenned folders + return Err(Errno::Notcapable); } } Kind::File { .. }