-
Notifications
You must be signed in to change notification settings - Fork 203
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
O_RESOLVE_BENEATH is forced #475
Comments
I don't see any reference to |
@yamt Yes, this is behavior we inherited from CloudABI. Directory handles act as I now believe we can migrate toward having a rooted filesystem, as I posted about here, which I expect will address your concerns, as many use cases that want "POSIX" can just use the filesystem namespace and things like ".." would work within it. That said, there are use cases for handles with |
|
ok.
ok. commented there.
even in case we keep the functionality, it should be optional i suppose. |
in posix,
openat(dirfd, "../b", ...)
should work.however, in wasi, O_RESOLVE_BENEATH behavior is unconditionally applied. (at least in popular implementations. i don't know if it was well documented for preview1. but for later versions, see https://github.com/WebAssembly/wasi-filesystem/blob/main/path-resolution.md.)
wasi-ilbc doesn't seem to emulate the posix behavior either.
The text was updated successfully, but these errors were encountered: