Skip to content

Open softlink error? #2869

@Userzxcvbvnm

Description

@Userzxcvbvnm

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions