add pbzx xar content patch

primary target of pbzx is xcode .xip files that have an entry named Content instead of Payload
This commit is contained in:
alexey.lysiuk 2021-10-07 10:49:57 +03:00
parent 7c41365058
commit c890469d7f

View file

@ -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);
}