From 188f96500bc16891b22c684ad96122635667a8ff Mon Sep 17 00:00:00 2001 From: Shea Levy Date: Fri, 7 Feb 2014 15:29:32 -0500 Subject: [PATCH] nix-store --serve: Don't fail if asked for info about non-valid path Signed-off-by: Shea Levy --- src/libstore/store-api.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/libstore/store-api.cc b/src/libstore/store-api.cc index d4d53e9da..082c2c4d9 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);