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

[Backport 2.21-maintenance] Factor out nix::maybeLstat #10476

Closed

Conversation

github-actions[bot]
Copy link

Automatic backport to 2.21-maintenance, triggered by a label in #10362.

Ericson2314 and others added 2 commits April 11, 2024 15:35
This function is nice for more than `PosixSourceAccessor`. We can make a
few things simpler with it.

Note that the error logic slightly changes in some of the call sites, in
that we also count `ENOTDIR` and not just `ENOENT` as not having the
file, but that should be fine.

(cherry picked from commit 8be347a)
Co-authored-by: Théophane Hufschmitt <[email protected]>
(cherry picked from commit 3752bbe)
@thufschmitt
Copy link
Member

This isn't needed for #10471 (apart from the last commit which I forgot to drop, I'll fix that in a minute), so I'd rather not backport it as it's a non-zero-risk refactor

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