Problem extracting Zip file

From: Carlos A. M. dos Santos <unixmania_at_gmail.com>
Date: Tue, 14 Oct 2008 19:14:57 -0300
Hello,

I just found a strange behavior attempting to extract a Zip archive,
as shown by the session transcription below.

% uname -a
FreeBSD poacasantos1 8.0-CURRENT FreeBSD 8.0-CURRENT #0: Sat Oct 11
19:09:09 BRT 2008
root_at_poacasantos1:/local/FreeBSD/obj-current/local/FreeBSD/src-current/sys/GENERIC
 amd64
% fetch http://movies.apple.com/movies/us/apple/mac/macbook/2008/designvideo/apple_new_macbook_video_20081014_848x480.zip
% tar tf apple_new_macbook_video_20081014_848x480.zip
apple_new_macbook_video_20081014_848x480.mov
__MACOSX/
__MACOSX/._apple_new_macbook_video_20081014_848x480.mov
% unzip -l apple_new_macbook_video_20081014_848x480.zip
Archive:  apple_new_macbook_video_20081014_848x480.zip
  Length     Date   Time    Name
 --------    ----   ----    ----
153902587  10-14-08 11:46   apple_new_macbook_video_20081014_848x480.mov
        0  10-14-08 11:48   __MACOSX/
       82  10-14-08 11:46
__MACOSX/._apple_new_macbook_video_20081014_848x480.mov

Observe that the archive contains two instances of the .mov file but
the second one, according to unzip, is only 82 bytes long.

% tar xf apple_new_macbook_video_20081014_848x480.zip
apple_new_macbook_video_20081014_848x480.mov: Attempt to write to an empty file
__MACOSX/._apple_new_macbook_video_20081014_848x480.mov: Attempt to
write to an empty file
tar: Error exit delayed from previous errors.
% ls -l . __MACOSX/
.:
total 149426
drwxr-xr-x  2 casantos  wheel        512 14 Out 07:48 __MACOSX
-rwxr-xr-x  1 casantos  wheel          0 14 Out 07:46
apple_new_macbook_video_20081014_848x480.mov
-rw-r--r--  1 casantos  wheel  152909711 14 Out 11:55
apple_new_macbook_video_20081014_848x480.zip

__MACOSX/:
total 0
% rm -r __MACOSX apple_new_macbook_video_20081014_848x480.mov
% unzip
UnZip 5.52 of 28 February 2005, by Info-ZIP.  Maintained by C. Spieler.  Send
bug reports using http://www.info-zip.org/zip-bug.html; see README for details.
...
% unzip apple_new_macbook_video_20081014_848x480.zip
Archive:  apple_new_macbook_video_20081014_848x480.zip
  inflating: apple_new_macbook_video_20081014_848x480.mov
   creating: __MACOSX/
  inflating: __MACOSX/._apple_new_macbook_video_20081014_848x480.mov
% ls -l . __MACOSX/
.:
total 299826
drwxrwxr-x  2 casantos  wheel        512 14 Out 11:48 __MACOSX
-rw-r--r--  1 casantos  wheel  153902587 14 Out 11:46
apple_new_macbook_video_20081014_848x480.mov
-rw-r--r--  1 casantos  wheel  152909711 14 Out 11:55
apple_new_macbook_video_20081014_848x480.zip

__MACOSX/:
total 0

So it seems that besides making juicy notebooks Apple makes bizarre
Zip files now. :-)

-- 
cd /usr/ports/sysutils/life
make clean
Received on Tue Oct 14 2008 - 20:15:00 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:36 UTC