Skip to content

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

Closed
github-actions[bot] wants to merge 2 commits into2.21-maintenancefrom
backport-10362-to-2.21-maintenance
Closed

[Backport 2.21-maintenance] Factor out nix::maybeLstat#10476
github-actions[bot] wants to merge 2 commits into2.21-maintenancefrom
backport-10362-to-2.21-maintenance

Conversation

@github-actions
Copy link
Copy Markdown

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 <7226587+thufschmitt@users.noreply.github.com>
(cherry picked from commit 3752bbe)
@thufschmitt
Copy link
Copy Markdown
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

@xokdvium xokdvium deleted the backport-10362-to-2.21-maintenance branch October 31, 2025 20:33
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