about summary refs log tree commit diff
path: root/src/nix-store/nix-store.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/nix-store/nix-store.cc')
-rw-r--r--src/nix-store/nix-store.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/nix-store/nix-store.cc b/src/nix-store/nix-store.cc
index f017b9ead31b..365ffa19a0d8 100644
--- a/src/nix-store/nix-store.cc
+++ b/src/nix-store/nix-store.cc
@@ -7,6 +7,7 @@
 #include "local-store.hh"
 #include "util.hh"
 #include "serve-protocol.hh"
+#include "worker-protocol.hh"
 
 #include <iostream>
 #include <algorithm>
@@ -864,12 +865,12 @@ static void opServe(Strings opFlags, Strings opArgs)
                 }
                 switch (qCmd) {
                     case qCmdHave: {
-                        PathSet paths = readStrings<PathSet>(in);
+                        PathSet paths = readStorePaths<PathSet>(in);
                         writeStrings(store->queryValidPaths(paths), out);
                         break;
                     }
                     case qCmdInfo: {
-                        PathSet paths = readStrings<PathSet>(in);
+                        PathSet paths = readStorePaths<PathSet>(in);
                         // !!! Maybe we want a queryPathInfos?
                         foreach (PathSet::iterator, i, paths) {
                             if (!store->isValidPath(*i))