mirror of
https://github.com/NixOS/nix
synced 2025-06-28 01:11:15 +02:00
AutoDelete: Add default constructor with deletion disabled
This commit is contained in:
parent
4390142315
commit
58d2fac91d
3 changed files with 11 additions and 1 deletions
|
@ -2534,7 +2534,7 @@ void DerivationGoal::runChild()
|
|||
|
||||
Path sandboxFile = drvPath + ".sb";
|
||||
if (pathExists(sandboxFile)) deletePath(sandboxFile);
|
||||
autoDelSandbox = AutoDelete(sandboxFile);
|
||||
autoDelSandbox.reset(sandboxFile, false);
|
||||
|
||||
writeFile(sandboxFile, sandboxProfile);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue