Operation not permitted ? #4265
Labels
bug
Something isn't working
📦 lib-vfs
About wasmer-vfs
🕵️ needs investigation
The issue/PR needs further investigation
priority-medium
Medium priority issue
Milestone
Steps to reproduce
(1)The c file is :
(2) compile the c file into wasm:
./wasi-sdk-16.0/bin/clang --target=wasm32-unkown-wasi --sysroot=./wasi-sdk-16.0/share/wasi-sysroot test.c -o test.wasm
(3)exeute open.wasm
wasmer run --dir=./Data test.wasm
The permission of Data/hello.txt is 0500 or 0400, user1 create the Data/hello.txt file and user1 execute the Wasm file.
Expected behavior
wasmtime, wazero, wamr print:
And ubuntu(compile the cfile directly into native code through gcc) prints:
Actual behavior
wasmer prints:
version
wasmer 4.2.2
ubuntu 20.04
The text was updated successfully, but these errors were encountered: