Skip to content

Read directory bug ? #4347

Open
Open
@Userzxcvbvnm

Description

@Userzxcvbvnm

Describe the bug

Data/mydir is a directory, and there is a file Data/mydir/test.txt.

The c file is uploaded as
test-c.txt

The wasm file is uploaded as
test-wasm.txt

Steps to reproduce

Change Data/mydir into 0600 (rw- --- ---)
using command wasmer run --dir=./Data test.wasm

Expected behavior

Print:

.
..
test.txt

wamr,wasmedge and native (gcc test.c -o test and ./test) print this message.

Actual behavior

Print:

Enter fd_readdir.
opendir: Permission denied

Additional context

Ubuntu 20.04 (x86_64)
wasmer v4.2.2

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions