summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ldid.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/ldid.cpp b/ldid.cpp
index ec81208..9fb3056 100644
--- a/ldid.cpp
+++ b/ldid.cpp
@@ -1701,7 +1701,9 @@ void DiskFolder::Find(const std::string &root, const std::string &base, const Fu
code(base + name, fun([&](const Functor<void (std::streambuf &, std::streambuf &)> &code) {
std::string access(root + base + name);
_assert_(Open(access, fun([&](std::streambuf &data, const void *flag) {
- NullBuffer save;
+ auto from(path + name);
+ std::filebuf save;
+ commit_[from] = Temporary(save, from);
code(data, save);
})), "open(): %s", access.c_str());
}));