about summary refs log tree commit diff
path: root/src/libstore
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2016-07-28T13·14+0200
committerEelco Dolstra <eelco.dolstra@logicblox.com>2016-08-10T16·05+0200
commit36a51ecab3f107be113401fbd401c5a491c5afea (patch)
treebf56b40e5ba425a7e85fcec468bba448f004caf8 /src/libstore
parent3eb621750848e0e6b30e5a79f76afbb096bb6c8a (diff)
LocalFSStore::narFromPath(): Handle the diverted store case
Diffstat (limited to 'src/libstore')
-rw-r--r--src/libstore/local-fs-store.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstore/local-fs-store.cc b/src/libstore/local-fs-store.cc
index c6ed8f746c69..95c8ecd9ba22 100644
--- a/src/libstore/local-fs-store.cc
+++ b/src/libstore/local-fs-store.cc
@@ -81,7 +81,7 @@ void LocalFSStore::narFromPath(const Path & path, Sink & sink)
 {
     if (!isValidPath(path))
         throw Error(format("path ‘%s’ is not valid") % path);
-    dumpPath(path, sink);
+    dumpPath(getRealStoreDir() + std::string(path, storeDir.size()), sink);
 }
 
 }