ref: db15c129dbdd25447e73743b11dc809fc339a7a8
parent: 150ee7fe6eea076c1c5daac8d7d2e5f63d8ffd2c
author: cinap_lenrek <cinap_lenrek@gmx.de>
date: Thu Oct 10 03:42:13 EDT 2013
unzip/zipfs: handle optional data descriptor signature in trailer
--- a/sys/src/cmd/gzip/unzip.c
+++ b/sys/src/cmd/gzip/unzip.c
@@ -657,6 +657,8 @@
{ if(zh->flags & ZTrailInfo){zh->crc = get4(bin);
+ if(zh->crc == 0x08074b50) /* thanks apple */
+ zh->crc = get4(bin);
zh->csize = get4(bin);
zh->uncsize = get4(bin);
}
--- a/sys/src/cmd/tapefs/zipfs.c
+++ b/sys/src/cmd/tapefs/zipfs.c
@@ -304,6 +304,8 @@
{ if(zh->flags & ZTrailInfo){zh->crc = get4(bin);
+ if(zh->crc == 0x08074b50) /* thanks apple */
+ zh->crc = get4(bin);
zh->csize = get4(bin);
zh->uncsize = get4(bin);
}
--
⑨