From 4dd4548be4f71701674b9c9e0dccacea32e3a129 Mon Sep 17 00:00:00 2001 From: Zorg Date: Tue, 5 May 2015 21:47:23 -0400 Subject: [PATCH] Added comment on why code-signed xattr is not diff'ed --- Sparkle/SUBinaryDeltaCreate.m | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Sparkle/SUBinaryDeltaCreate.m b/Sparkle/SUBinaryDeltaCreate.m index 29677467..0e30629d 100644 --- a/Sparkle/SUBinaryDeltaCreate.m +++ b/Sparkle/SUBinaryDeltaCreate.m @@ -323,6 +323,9 @@ int createBinaryDelta(NSString *source, NSString *destination, NSString *patchFi // We should validate permissions and ACLs even if we don't store the info in the diff in the case of ACLs, // or in the case of permissions if the patch version is 1 + // We should also not allow files with code signed extended attributes since Apple doesn't recommend inserting these + // inside an application, and since we don't preserve extended attribitutes anyway + mode_t permissions = [info[INFO_PERMISSIONS_KEY] unsignedShortValue]; if (!IS_VALID_PERMISSIONS(permissions)) { fprintf(stderr, "\nInvalid file permissions after-tree on file %s\nOnly permissions with modes 0755 and 0644 are supported\n", ent->fts_path);