It seems WASI now forbids root and relative paths on the at file descriptor and returns EPERM otherwise. This enforces the following: * require EPERM when you escape a directory (../) * require EPERM if you add a leading slash (absolute path) * require ENOENT if you add a trailing slash to a file * require success if you add a trailing slash to a directory See https://github.com/WebAssembly/wasi-testsuite/pull/67 Signed-off-by: Adrian Cole <adrian@tetrate.io>
5.5 KiB
5.5 KiB