aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 c6ed8f746..95c8ecd9b 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);
}
}