diff options
author | Jay Freeman (saurik) <saurik@saurik.com> | 2016-08-25 19:23:27 -0700 |
---|---|---|
committer | Jay Freeman (saurik) <saurik@saurik.com> | 2016-08-25 19:23:27 -0700 |
commit | 476c5012c24d4d65a2d217f3f11d409c3bb090a8 (patch) | |
tree | e6bf68c5e6b478305551ad2dd3d9ac3d4de19a8c /ldid.cpp | |
parent | 9914b1b344102912dabda6c3121e56583e391f40 (diff) | |
download | ldid-476c5012c24d4d65a2d217f3f11d409c3bb090a8.tar.gz ldid-476c5012c24d4d65a2d217f3f11d409c3bb090a8.tar.zst ldid-476c5012c24d4d65a2d217f3f11d409c3bb090a8.zip |
Support signing DiskFolders with nested resources.
Diffstat (limited to 'ldid.cpp')
-rw-r--r-- | ldid.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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()); })); |