Catch up on stories from the past week (and beyond) at the Slashdot story archive

 



Forgot your password?
typodupeerror
×
User Journal

Journal eglamkowski's Journal: Info-ZIP on Mac 5

So, I have this .zip file sitting out on a Linux box that was compressed on a Mac (OS X).

% unzip -v -t foo.zip
Archive: foo.zip
warning [foo.zip]: 513937 extra bytes at beginning or within zipfile
    (attempting to process anyway)
error [foo.zip]: start of central directory not found;
    zipfile corrupt.
    (please check that you have transferred or created the zipfile in the
    appropriate BINARY mode and that you have compiled UnZip properly)

Well that looks bad. So I look at the header in hex mode and get the following out of it:

Local file header signature: 0x04034b50
Version needed to extract: 0x0a0d (0a = 10 = Windows NTFS; 0d = 13 = v1.3)
General purpose bit flag: 0x0000
compression method: 0x0000 (stored, no compression)
last mod file time: 0x4a00
last mod file date: 0x7eb0
crc-32: 0x00000036
compressed size: 0x00000000
uncompressed size: 0x00000000
file name length: 0x0e00 (0x000e = 14)
extra field length: 0x1000 (0x0010 = 16)

First of all, version 1.3? WTF? From the info I can find, it appears it went from 1.1 to 2.0, so that makes no sense. Anyways, the extra field:

Header ID: 0x5855 = Info-ZIP UNIX (original, also OS/2, NT, etc)
tsize 0x000c
access time 0x0a0dc102
mod time 0x0dc12b46
uid 0x460a
gid 0x01f5

Umm...

Anyways, I've tried unzip, gunzip, bunzip2, 7za, all with no luck.

I'm beginning to think the file is corrupt, but was wondering if anybody had any additional thoughts before I ask for a resend. (The person who made the file is out of town so waiting means losing a day.)

This discussion has been archived. No new comments can be posted.

Info-ZIP on Mac

Comments Filter:

The most exciting phrase to hear in science, the one that heralds new discoveries, is not "Eureka!" (I found it!) but "That's funny ..." -- Isaac Asimov

Working...