summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2016-08-25 19:23:27 -0700
committerJay Freeman (saurik) <saurik@saurik.com>2016-08-25 19:23:27 -0700
commit476c5012c24d4d65a2d217f3f11d409c3bb090a8 (patch)
treee6bf68c5e6b478305551ad2dd3d9ac3d4de19a8c
parent9914b1b344102912dabda6c3121e56583e391f40 (diff)
downloadldid-476c5012c24d4d65a2d217f3f11d409c3bb090a8.tar.gz
ldid-476c5012c24d4d65a2d217f3f11d409c3bb090a8.tar.zst
ldid-476c5012c24d4d65a2d217f3f11d409c3bb090a8.zip
Support signing DiskFolders with nested resources.
-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());
}));