From owner-freebsd-current@FreeBSD.ORG Tue Oct 14 22:15:00 2008 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 132C5106564A for ; Tue, 14 Oct 2008 22:15:00 +0000 (UTC) (envelope-from unixmania@gmail.com) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.185]) by mx1.freebsd.org (Postfix) with ESMTP id 8A9068FC13 for ; Tue, 14 Oct 2008 22:14:59 +0000 (UTC) (envelope-from unixmania@gmail.com) Received: by nf-out-0910.google.com with SMTP id h3so1195298nfh.33 for ; Tue, 14 Oct 2008 15:14:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:mime-version:content-type:content-transfer-encoding :content-disposition; bh=vP4vg4vhEsMQfY1XpeiJraX6sZBjsFe0LwPbe4kr5XU=; b=Yuo6EQcLvmvcApoqADT+kZ9epveYg5qfxVOSojhV9jpxd8HAXupmsNM7pKvMGS21KV i6vZWi6PJ0h8X/AquHogDtIyYbSB9EMEDjfy+bdpZsmSOvvIgZrEpo44kAniUO6+GEgY yF1glMTkOBlyhf2TqdksVzqRLQWg7M6XMN9Mc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:mime-version:content-type :content-transfer-encoding:content-disposition; b=KqdnGBlK0rGtggD56hUxJ7Uq4jD6WVis+0VlCngpQeki9kJDH0NvhBbhlWhVH9fqDQ NSeH9IT09RcsBOBkjkfhwEEhFp8uXQjHdWBPj0Tdo3ak2bjexAiMp8pyIgBpBjvbgqn/ 5jPYROXVzsml1aE7LD737zXIuHoJbWA09iKuM= Received: by 10.103.243.7 with SMTP id v7mr73829mur.24.1224022497908; Tue, 14 Oct 2008 15:14:57 -0700 (PDT) Received: by 10.103.231.14 with HTTP; Tue, 14 Oct 2008 15:14:57 -0700 (PDT) Message-ID: Date: Tue, 14 Oct 2008 19:14:57 -0300 From: "Carlos A. M. dos Santos" To: freebsd-current@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Cc: Tim Kientzle Subject: Problem extracting Zip file X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Oct 2008 22:15:00 -0000 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@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