Skip to content
Snippets Groups Projects
Commit c16be6ac authored by Eelco Dolstra's avatar Eelco Dolstra
Browse files

* Remove write permission from store objects after they have been

  added to the store.  Bug reported by Martin.
parent 47f87072
No related branches found
No related tags found
No related merge requests found
......@@ -448,6 +448,8 @@ Path addToStore(const Path & _srcPath)
copyPath(srcPath, dstPath);
makePathReadOnly(dstPath);
Transaction txn(nixDB);
registerValidPath(txn, dstPath);
txn.commit();
......@@ -476,6 +478,8 @@ void addTextToStore(const Path & dstPath, const string & s)
writeStringToFile(dstPath, s);
makePathReadOnly(dstPath);
Transaction txn(nixDB);
registerValidPath(txn, dstPath);
txn.commit();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment