about summary refs log tree commit diff
path: root/src/libstore/normalise.cc
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2004-04-14T08·08+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2004-04-14T08·08+0000
commita4d2b22c8ca5064f1da614914c7ea336eedd65c4 (patch)
tree6ba789f13a5a70011a0efd8aa67d132eb88431b4 /src/libstore/normalise.cc
parent87bf541f23723f6a8c7f05c89984c5df0c450ec2 (diff)
* Be stricter in verifying store paths.
Diffstat (limited to 'src/libstore/normalise.cc')
-rw-r--r--src/libstore/normalise.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libstore/normalise.cc b/src/libstore/normalise.cc
index 5d3771b23343..69c9103d9e45 100644
--- a/src/libstore/normalise.cc
+++ b/src/libstore/normalise.cc
@@ -335,6 +335,7 @@ void ensurePath(const Path & path, PathSet pending)
 
 StoreExpr storeExprFromPath(const Path & path, PathSet pending)
 {
+    assertStorePath(path);
     ensurePath(path, pending);
     ATerm t = ATreadFromNamedFile(path.c_str());
     if (!t) throw Error(format("cannot read aterm from `%1%'") % path);