Skip to content

libutil: Use openFileEnsureBeneathNoSymlinks in RestoreSink::createRe…#14651

Merged
Ericson2314 merged 1 commit intomasterfrom
restore-sink-more-openat2
Nov 26, 2025
Merged

libutil: Use openFileEnsureBeneathNoSymlinks in RestoreSink::createRe…#14651
Ericson2314 merged 1 commit intomasterfrom
restore-sink-more-openat2

Conversation

@xokdvium
Copy link
Contributor

…gularFile

Motivation

Add more assertions for preconditions of openFileEnsureBeneathNoSymlinks to prevent misuse. Also start using it for regular file creation as well.

Context


Add 👍 to pull requests you find important.

The Nix maintainer team uses a GitHub project board to schedule and track reviews.

…gularFile

Add more assertions for preconditions of openFileEnsureBeneathNoSymlinks to prevent
misuse. Also start using it for regular file creation as well.
@xokdvium xokdvium requested a review from edolstra as a code owner November 26, 2025 00:55
@xokdvium
Copy link
Contributor Author

cc @edef1c. Is this the direction you wanted us to move in, right?

@Ericson2314 Ericson2314 added this pull request to the merge queue Nov 26, 2025
Merged via the queue into master with commit c383495 Nov 26, 2025
20 checks passed
@Ericson2314 Ericson2314 deleted the restore-sink-more-openat2 branch November 26, 2025 02:38
@edolstra edolstra mentioned this pull request Dec 9, 2025
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