fix file rights

This commit is contained in:
Pat Hickey
2020-12-16 17:19:27 -08:00
parent 8777194f0d
commit 23b5689a5f
2 changed files with 10 additions and 7 deletions

View File

@@ -101,7 +101,7 @@ impl WasiCtxBuilder {
path: impl AsRef<Path>,
) -> Result<&mut Self, Error> {
let caps = DirCaps::all();
let file_caps = FileCaps::READ | FileCaps::WRITE; // XXX more base caps
let file_caps = FileCaps::all();
self.0.table().push(Box::new(DirEntry::new(
caps,
file_caps,