Skip to content

fix: symlink loops throw FileSystemException - #94

Open
andreaTP wants to merge 1 commit into
mainfrom
fix/symlink-loop-exception
Open

andreaTP wants to merge 1 commit into
mainfrom
fix/symlink-loop-exception

Conversation

@andreaTP

Copy link
Copy Markdown

Symlink loops threw a plain IOException. Now a FileSystemException with the same reason the JDK reports for ELOOP, so a WASI layer can map it to ELOOP for both ZeroFs and the default file system.

Checked with Endive (wasi-tests, machine-tests, wabt, Zig stdlib suite): no regressions.

The reason matches what the JDK reports for ELOOP, so callers such as a
WASI layer can map it the same way for ZeroFs and the default file system.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant