]> git.saurik.com Git - ldid.git/commitdiff
Support signing DiskFolders with nested resources.
authorJay Freeman (saurik) <saurik@saurik.com>
Fri, 26 Aug 2016 02:23:27 +0000 (19:23 -0700)
committerJay Freeman (saurik) <saurik@saurik.com>
Fri, 26 Aug 2016 02:23:27 +0000 (19:23 -0700)
ldid.cpp

index ec81208a8424edbe6fbebf0be9de8983a0c313a7..9fb3056c30ba005a8bb21f334580ceff4419fb73 100644 (file)
--- 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());
             }));