From c890469d7fcb73a63399190983b3df71285edc3f Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Thu, 7 Oct 2021 10:49:57 +0300 Subject: [PATCH] add pbzx xar content patch primary target of pbzx is xcode .xip files that have an entry named Content instead of Payload --- patch/pbzx-xar-content.diff | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 patch/pbzx-xar-content.diff diff --git a/patch/pbzx-xar-content.diff b/patch/pbzx-xar-content.diff new file mode 100644 index 00000000..562fe54a --- /dev/null +++ b/patch/pbzx-xar-content.diff @@ -0,0 +1,11 @@ +--- a/pbzx.c ++++ b/pbzx.c +@@ -127,7 +127,7 @@ + xar_file_t f = xar_file_first(s->xar, i); + char* path = NULL; + /* Find the Payload file in the archive. */ +- while (strncmp((path = xar_get_path(f)), "Payload", 7) && ++ while (strncmp((path = xar_get_path(f)), "Content", 7) && + (f = xar_file_next(i))) { + free(path); + }