-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Question for directory_seek test #61
Comments
Calling WASI doesn't have an explicit I propose we instead document that |
Thank you for your reply! I agree that My concern is that the expected behavior should be documented, otherwise it is just an implementation choice for runtime. It seems that wasmtime may unset the fd_seek rights bit only while using I propose the rights check for this test should be removed. Moreover, which wasi function may fail on directory handles should be documented to make this test reasonable. |
Is there any update on this issue? |
According to this test, it seems that using
fd_seek
on a directory is forbidden, though I can calllseek
on a directory fd in POSIX. Also, we shouldn't set the fd_seek bits on a directory despite explicitly setting it inpath_open
.I can't find any document or discussion related to this behavior which is unsetting the rights that are explicitly set in
path_open
for the directory.My question is:
ISDIR
error while using the function.I believe this should be documented.
It seems that the rights system may be removed. Getting a workaround to pass the test is what I intended to do.
A related issue in wasi-filesystem: WebAssembly/wasi-filesystem#103
Thanks in advance!
The text was updated successfully, but these errors were encountered: