Skip to content

Commit

Permalink
Return ENotCapable error when accessing unknown files on root (for #3263
Browse files Browse the repository at this point in the history
 and #3264)
  • Loading branch information
ptitSeb committed Oct 28, 2022
1 parent 4cc963d commit e41b873
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/wasi/src/state/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 { .. }
Expand Down

0 comments on commit e41b873

Please sign in to comment.