wasi: returns ELOOP properly (#1104)
Signed-off-by: Takeshi Yoneda <takeshi@tetrate.io>
This commit is contained in:
2
.github/workflows/integration.yaml
vendored
2
.github/workflows/integration.yaml
vendored
@@ -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
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user