Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Maps ERROR_NOT_A_REPARSE_POINT to EINVAL #2218

Merged
merged 1 commit into from
May 27, 2024
Merged

Conversation

ncruces
Copy link
Collaborator

@ncruces ncruces commented May 27, 2024

This fixes a Windows inconsistency where Readlink was returning EIO instead of EINVAL when the named file is not a symbolic link.

See:
https://man7.org/linux/man-pages/man2/readlink.2.html
https://learn.microsoft.com/en-us/windows/win32/debug/system-error-codes--4000-5999-

This fixes a Windows inconsistency where Readlink was returning
EIO instead of EINVAL when the named file is not a symbolic link.

Signed-off-by: Nuno Cruces <[email protected]>
Copy link
Member

@mathetake mathetake left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great!

@mathetake mathetake merged commit d34df00 into tetratelabs:main May 27, 2024
64 checks passed
@ncruces ncruces deleted the trealla branch May 27, 2024 13:24
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.

2 participants