1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2024-09-19 10:50:24 -04:00

Merge pull request #11480 from NixOS/mergify/bp/2.20-maintenance/pr-11473

Fix making the build directory kept by `keep-failed` readable (backport #11473)
This commit is contained in:
Robert Hensing 2024-09-16 12:40:28 +02:00 committed by GitHub
commit 1da3fd549e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2945,6 +2945,7 @@ void LocalDerivationGoal::deleteTmpDir(bool force)
might have privileged stuff (like a copy of netrc). */ might have privileged stuff (like a copy of netrc). */
if (settings.keepFailed && !force && !drv->isBuiltin()) { if (settings.keepFailed && !force && !drv->isBuiltin()) {
printError("note: keeping build directory '%s'", tmpDir); printError("note: keeping build directory '%s'", tmpDir);
chmod(topTmpDir.c_str(), 0755);
chmod(tmpDir.c_str(), 0755); chmod(tmpDir.c_str(), 0755);
} }
else else