sunfishcode opened PR #2884 from sunfishcode/full-metadata-fun
to main
:
On Windows,
metadata
computes only partial metadata results, which don't
include what WASI needs for theinode
field inreaddir
results. cap-std
has afull_metadata
function which is able to include this extra
information, however it has more strict access requirements, so it sometimes
fails even when plainmetadata
would succeed.Make WASI's
readdir
silently skip over files that can't be accessed by
full_metadata
. These files wouldn't be openable in any other way by
WASI programs, so the only benefit of listing them would be to
let applications know that they exist. This allows it to avoid failing
and avoid returning bogus results.This is part of a fix for bytecodealliance/cap-std#169.
<!--Please ensure that the following steps are all taken care of before submitting
the PR.
[ ] This has been discussed in issue #..., or if not, please tell us why
here.[ ] A short description of what this does, why it is needed; if the
description becomes long, the matter should probably be discussed in an issue
first.[ ] This PR contains test cases, if meaningful.
- [ ] A reviewer from the core maintainer team has been assigned for this PR.
If you don't know who could review this, please indicate so. The list of
suggested reviewers on the right can help you.Please ensure all communication adheres to the code of conduct.
-->
sunfishcode updated PR #2884 from sunfishcode/full-metadata-fun
to main
.
sunfishcode updated PR #2884 from sunfishcode/full-metadata-fun
to main
.
sunfishcode updated PR #2884 from sunfishcode/full-metadata-fun
to main
.
pchickey submitted PR Review.
sunfishcode merged PR #2884.
Last updated: Nov 22 2024 at 16:03 UTC