ref: 7f57d5d9c58d9a471181f3f91e3c037b49cede9f
parent: 3b99a601546a722838cfdb65de9848b7a367b169
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);
}
--
⑨