You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since the 3.2.0-beta.1 release, renaming files through WASI does not work.
If wasmer is invoked wasmer run --dir . broken-rename.wasm, path_rename when passed a file descriptor for /root cannot resolve paths relative to that file descriptor and returns NOENT.
If wasmer is invoked wasmer run --dir root broken-rename.wasm, the previous problem with path_rename occurs, but also Rust's fs::rename starts returning the same error code. I'm guessing it tries to use a file handle for / and fails because / and /root are different filesystems.
Describe the bug
Since the 3.2.0-beta.1 release, renaming files through WASI does not work.
wasmer run --dir . broken-rename.wasm
,path_rename
when passed a file descriptor for/root
cannot resolve paths relative to that file descriptor and returnsNOENT
.wasmer run --dir root broken-rename.wasm
, the previous problem withpath_rename
occurs, but also Rust'sfs::rename
starts returning the same error code. I'm guessing it tries to use a file handle for/
and fails because/
and/root
are different filesystems.Steps to reproduce
This simple program works on wasmer 3.2.0-alpha.1 but fails on 3.2.0-beta.1 and later.
Expected behavior
Renaming
a
tob
should work both times.Actual behavior
a
cannot be renamed tob
because ofNOENT
errors.Additional context
The text was updated successfully, but these errors were encountered: