mirror of
https://github.com/NixOS/nix
synced 2025-07-07 01:51:47 +02:00
parent
2605f4f4e6
commit
3a4623afbb
3 changed files with 5 additions and 4 deletions
|
@ -1527,7 +1527,7 @@ void DerivationGoal::startBuilder()
|
|||
|
||||
/* Create a temporary directory where the build will take
|
||||
place. */
|
||||
tmpDir = createTempDir("", "nix-build-" + baseNameOf(drvPath), false, false);
|
||||
tmpDir = createTempDir("", "nix-build-" + baseNameOf(drvPath), false, false, 0700);
|
||||
|
||||
/* For convenience, set an environment pointing to the top build
|
||||
directory. */
|
||||
|
@ -2178,6 +2178,7 @@ void DerivationGoal::deleteTmpDir(bool force)
|
|||
% drvPath % tmpDir);
|
||||
if (buildUser.enabled() && !amPrivileged())
|
||||
getOwnership(tmpDir);
|
||||
chmod(tmpDir.c_str(), 0755);
|
||||
}
|
||||
else
|
||||
deletePathWrapped(tmpDir);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue