We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Whenever a file is renamed it's placed outside of pre-opened directory. It happens only if the file isn't in a subdirectory.
echo "`wasmer -V` | `rustc -V` | `uname -m`" wasmer 1.0.0-alpha4 | rustc 1.47.0 (18bf6b4f0 2020-10-07) | x86_64
wasmer --dir=./dir uutils.wasm -- mv dir/foo dir/bar
File ./dir/foo is renamed to ./dir/bar
File ./dir/foo is renamed to ./bar
wasmer --dir=./dir uutils.wasm -- mv dir/dir2/foo dir/dir2/bar works correctly
wasmer --dir=./dir uutils.wasm -- mv dir/dir2/foo dir/dir2/bar
The text was updated successfully, but these errors were encountered:
Thanks for the bug report! That seems like a fairly important bug (breaking the filesystem sandbox), I'll make sure we stress test our sandboxing more
Sorry, something went wrong.
path_rename
f79fb9f
Successfully merging a pull request may close this issue.
Describe the bug
Whenever a file is renamed it's placed outside of pre-opened directory. It happens only if the file isn't in a subdirectory.
Steps to reproduce
wasmer --dir=./dir uutils.wasm -- mv dir/foo dir/bar
Expected behavior
File ./dir/foo is renamed to ./dir/bar
Actual behavior
File ./dir/foo is renamed to ./bar
Additional context
wasmer --dir=./dir uutils.wasm -- mv dir/dir2/foo dir/dir2/bar
works correctlyThe text was updated successfully, but these errors were encountered: