This was not intended to be there

This commit is contained in:
opa334 2023-11-28 02:24:33 +01:00
parent a48071b55a
commit f73642d37a
1 changed files with 1 additions and 1 deletions

View File

@ -124,7 +124,7 @@ int codesign_sign_adhoc(const char *path, bool preserveMetadata, NSDictionary *c
parameters[(__bridge NSString*)kSecCodeSignerIdentity] = (__bridge id)identity; parameters[(__bridge NSString*)kSecCodeSignerIdentity] = (__bridge id)identity;
uint64_t preserveMetadataFlags = 0; uint64_t preserveMetadataFlags = 0;
if (preserveMetadata) { if (preserveMetadata) {
preserveMetadataFlags = (kSecCSPreserveIdentifier | kSecCSPreserveRequirements | kSecCSPreserveEntitlements | kSecCSPreserveResourceRules); preserveMetadataFlags = (kSecCSPreserveIdentifier | kSecCSPreserveRequirements | kSecCSPreserveResourceRules);
if (!customEntitlements) { if (!customEntitlements) {
preserveMetadataFlags |= kSecCSPreserveEntitlements; preserveMetadataFlags |= kSecCSPreserveEntitlements;
} }