Open Userzxcvbvnm opened 8 months ago
Hi, I tried your wasm file on my Ubuntu 20.04, it seems that I didn't get the behavior like you descripted. My Steps:
Data/link/hello_softlink.txt
points to Data/hello.txt
iwasm --dir=~./Data test.wasm
My results are:
Successfully write the content to the hello.txt
and the hello_softlink.txt
remained as a soft link(no matter WAMR-1.2.3 or latest commit)
Is my step the same as yours? Could you please think of anything that would influence results and make our results different?
Steps to reproduce
The test.c file is uploaded test-c.txt And the test.wasm file is uploaded test-wasm.txt
using command
iwasm --dir=./Data test.wasm
to execute the wasm file.We create a normal file Data/hello.txt, and a softlink file Data/link/hello_softlink.txt points to Data/hello.txt
Environment
ubuntu 20.04 Windows 10 WAMR-1.2.3
Result
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
However, in Ubuntu, WAMR could not write content to Data/hello.txt. And WAMR create a new file Data/link/hello.txt and write content to Data/link/hello.txt. Maybe this is not correct.