summary refs log tree commit diff
path: root/src/libstore
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2004-09-22 12:15:04 +0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2004-09-22 12:15:04 +0000
commit13172427806ad41fb3896c2e3ced1cf9672bb081 (patch)
tree578c47cfde2d718764c576dd1e0973946f8f13ba /src/libstore
parent995d08208eb52dfa42451733c4b20add2730de9f (diff)
downloadguix-13172427806ad41fb3896c2e3ced1cf9672bb081.tar.gz
* Make store objects created by substitutes read-only.
Diffstat (limited to 'src/libstore')
-rw-r--r--src/libstore/normalise.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libstore/normalise.cc b/src/libstore/normalise.cc
index 62ffb981c9..ebdf7fdca2 100644
--- a/src/libstore/normalise.cc
+++ b/src/libstore/normalise.cc
@@ -1601,6 +1601,8 @@ void SubstitutionGoal::finished()
         return;
     }
 
+    makePathReadOnly(storePath);
+
     Transaction txn;
     createStoreTransaction(txn);
     registerValidPath(txn, storePath);