about summary refs log tree commit diff
path: root/src/libstore
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstore')
-rw-r--r--src/libstore/store-api.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libstore/store-api.cc b/src/libstore/store-api.cc
index d4d53e9daf16..082c2c4d9740 100644
--- a/src/libstore/store-api.cc
+++ b/src/libstore/store-api.cc
@@ -269,6 +269,8 @@ void StoreAPI::serve(Source & in, Sink & out, bool sign)
             } else if (cmd == "info") {
                 // !!! Maybe we want a queryPathInfos?
                 foreach (PathSet::iterator, i, paths) {
+                    if (!isValidPath(*i))
+                        continue;
                     ValidPathInfo info = queryPathInfo(*i);
                     writeString(info.path, out);
                     writeString(info.deriver, out);