mirror of
https://github.com/NixOS/nix
synced 2025-07-09 16:13:54 +02:00
Fix sandbox escape patch
This commit is contained in:
parent
9179bc5a6e
commit
7794354a98
1 changed files with 2 additions and 2 deletions
|
@ -2546,8 +2546,8 @@ SingleDrvOutputs LocalDerivationGoal::registerOutputs()
|
||||||
// Replace the output by a fresh copy of itself to make sure
|
// Replace the output by a fresh copy of itself to make sure
|
||||||
// that there's no stale file descriptor pointing to it
|
// that there's no stale file descriptor pointing to it
|
||||||
Path tmpOutput = actualPath + ".tmp";
|
Path tmpOutput = actualPath + ".tmp";
|
||||||
renameFile(actualPath, tmpOutput);
|
copyFile(actualPath, tmpOutput, true);
|
||||||
copyFile(tmpOutput, actualPath, true);
|
renameFile(tmpOutput, actualPath);
|
||||||
|
|
||||||
auto newInfo0 = newInfoFromCA(DerivationOutput::CAFloating {
|
auto newInfo0 = newInfoFromCA(DerivationOutput::CAFloating {
|
||||||
.method = dof.ca.method,
|
.method = dof.ca.method,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue