diff options
author | Jay Freeman (saurik) <saurik@saurik.com> | 2019-02-19 18:49:40 -0800 |
---|---|---|
committer | Jay Freeman (saurik) <saurik@saurik.com> | 2019-02-19 18:49:40 -0800 |
commit | f8e0d186cd58d38b4097dd5d8917d639c3678fca (patch) | |
tree | 3cda29d686bd313de10e1b99c1dfdaa23cfc5b32 /ldid.cpp | |
parent | ec3af45e12e60355d13d2caed08070b4ccb64e3b (diff) | |
download | ldid-f8e0d186cd58d38b4097dd5d8917d639c3678fca.tar.gz ldid-f8e0d186cd58d38b4097dd5d8917d639c3678fca.tar.zst ldid-f8e0d186cd58d38b4097dd5d8917d639c3678fca.zip |
Support entitlement merges with unentitled binary.v2.1.1
Diffstat (limited to 'ldid.cpp')
-rw-r--r-- | ldid.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -1889,7 +1889,9 @@ Hash Sign(const void *idata, size_t isize, std::streambuf &output, const std::st baton.entitlements_.assign(data, size); })); - if (!entitlements.empty()) { + if (baton.entitlements_.empty()) + baton.entitlements_ = entitlements; + else if (!entitlements.empty()) { auto combined(plist(baton.entitlements_)); _scope({ plist_free(combined); }); _assert(plist_get_node_type(combined) == PLIST_DICT); |