aboutsummaryrefslogtreecommitdiff
path: root/src/libstore/build.cc
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2020-01-28 13:19:30 +0100
committerEelco Dolstra <edolstra@gmail.com>2020-01-28 13:19:30 +0100
commitab41e9d543203f8b6dbaeed27ba3af1be12adf8c (patch)
treea73a4e0a99657394f5202964f51b9ab4b0c81013 /src/libstore/build.cc
parent6be04476dc076fc1f054d9b905616bfb65c9ff75 (diff)
parent2242be83c61788b9c0736a92bb0b5c7bbfc40803 (diff)
Merge remote-tracking branch 'origin/master' into flakes
Diffstat (limited to 'src/libstore/build.cc')
-rw-r--r--src/libstore/build.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libstore/build.cc b/src/libstore/build.cc
index 4137c47e5..30077556d 100644
--- a/src/libstore/build.cc
+++ b/src/libstore/build.cc
@@ -2580,6 +2580,7 @@ void DerivationGoal::writeStructuredAttrs()
}
writeFile(tmpDir + "/.attrs.json", rewriteStrings(json.dump(), inputRewrites));
+ chownToBuilder(tmpDir + "/.attrs.json");
/* As a convenience to bash scripts, write a shell file that
maps all attributes that are representable in bash -
@@ -2648,6 +2649,7 @@ void DerivationGoal::writeStructuredAttrs()
}
writeFile(tmpDir + "/.attrs.sh", rewriteStrings(jsonSh, inputRewrites));
+ chownToBuilder(tmpDir + "/.attrs.sh");
}