Skip to content

Do not follow symlinks in fd_readdir - #263

Open
andreaTP wants to merge 1 commit into
bytecodealliance:mainfrom
andreaTP:fix/fd-readdir-nofollow
Open

andreaTP wants to merge 1 commit into
bytecodealliance:mainfrom
andreaTP:fix/fd-readdir-nofollow

Conversation

@andreaTP

Copy link
Copy Markdown
Contributor

fd_readdir stat'ed entries following symlinks: links got their target's type and dangling links were skipped, which made Zig's deleteTree loop forever.

Re-enables the Zig std tests "statFile on dangling symlink" and "readlinkat" (nightly: 2680 passed, 123 skipped, 0 failed).

Entries were stat'ed following links, so symlinks were reported with
their target's type and dangling symlinks were skipped. That made Zig's
deleteTree loop forever on directories containing a dangling link.
Re-enables the Zig std tests "statFile on dangling symlink" and
"readlinkat".
@andreaTP
andreaTP force-pushed the fix/fd-readdir-nofollow branch from f535756 to 80475ef Compare November 2, 2026 15:01

This branch has not been deployed

No deployments
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