Skip to content

std.fs: Handle EINVAL from linux.getdents64 - #11295

Merged
Vexu merged 1 commit into
ziglang:masterfrom
17dec:linux-getdents-einval
Mar 27, 2022
Merged

Vexu merged 1 commit into
ziglang:masterfrom
17dec:linux-getdents-einval

Conversation

@17dec

@17dec 17dec commented Mar 25, 2022

Copy link
Copy Markdown

Fixes #11178.

As per discussion on IRC, return error.Unexpected directly rather than calling os.unexpectedErrno() to avoid a stack trace in debugging mode. It may be an unexpected error, but it's known to happen and won't need further patching in Zig.

@Vexu
Vexu merged commit a303022 into ziglang:master Mar 27, 2022
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.

linux.getdents64 may return EINVAL

2 participants