about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2004-09-22T12·15+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2004-09-22T12·15+0000
commit13172427806ad41fb3896c2e3ced1cf9672bb081 (patch)
tree578c47cfde2d718764c576dd1e0973946f8f13ba
parent995d08208eb52dfa42451733c4b20add2730de9f (diff)
* Make store objects created by substitutes read-only.
-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 62ffb981c9d9..ebdf7fdca224 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);