wasi: returns ELOOP properly (#1104)

Signed-off-by: Takeshi Yoneda <takeshi@tetrate.io>
This commit is contained in:
Takeshi Yoneda
2023-02-06 21:30:35 -08:00
committed by GitHub
parent 5cdf32062c
commit 9dbed753f5
2 changed files with 2 additions and 2 deletions

View File

@@ -311,5 +311,3 @@ jobs:
./tests/rust/testsuite/ \
-f ./tests/rust/skip.json \
-r ./adapters/wazero.sh
# TODO: remove when #1036 is complete
continue-on-error: true

View File

@@ -289,6 +289,8 @@ func ToErrno(err error) Errno {
return ErrnoNotdir
case errors.Is(err, syscall.EPERM), errors.Is(err, fs.ErrPermission):
return ErrnoPerm
case errors.Is(err, syscall.ELOOP):
return ErrnoLoop
default:
return ErrnoIo
}