about summary refs log tree commit diff
diff options
context:
space:
mode:
-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);