Description
Describe the bug
The test.c file is uploaded
test-c.txt
And the test.wasm file is uploaded
test-wasm.txt
Steps to reproduce
We create a normal file Data/hello.txt, and a softlink file Data/link/hello_softlink.txt points to Data/hello.txt
using command wasmer run --dir=./Data test.wasm
to execute the wasm file.
Envrionment
ubuntu 20.04
Windows 10
wasmer v4.2.2
Expected behavior
In windows, WAMR could write content successfully to the source file Data/hello.txt. And this behavior could be considered as a right behavior, since Data/link/hello_softlink.txt points to Data/hello.txt.
Actual behavior
In windows, wasmer failed to open the softlink file and prints:
Failed to open the file.
In linux, wasmer could not write content to Data/hello.txt. And wasmer create a new file Data/link/hello.txt and write content to Data/link/hello.txt. Maybe this is not correct.