Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
X-AuthUser: gerrit:koeln.convey.de
Date: Fri, 25 Apr 2003 08:22:31 +0200
From: "Gerrit P. Haase" <gp@familiehaase.de>
Organization: Esse keine toten Tiere
X-Priority: 3 (Normal)
Message-ID: <9289580454.20030425082231@familiehaase.de>
To: cygwin@cygwin.com
Subject: Re: unzip - known problem?
In-Reply-To: <Pine.GSO.4.44.0304241538210.10996-100000@slinky.cs.nyu.edu>
References: <Pine.GSO.4.44.0304241538210.10996-100000@slinky.cs.nyu.edu>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Hallo Igor,

Am Donnerstag, 24. April 2003 um 21:39 schriebst du:
> On Thu, 24 Apr 2003, Gerrit P. Haase wrote:
>> Hallo Gary,
>> Am Donnerstag, 24. April 2003 um 16:31 schriebst du:
>>> Let's say I have a .zip file, test.zip, that contains the following:
>>>         test/cat.exe
>>>         test/cat/mouse.exe
>>> If I do "unzip test.zip" (in an otherwise empty directory), I get the
>>> following error:
>>>     checkdir error:  test/cat exists but is not directory
>>>                      unable to process test/cat/.
>> $ ls -R
>> .:
>> cat/  cat.exe*
>> ./cat:
>> mouse.exe*
>> $ zip -r test .
>>   adding: cat/ (stored 0%)
>>   adding: cat/mouse.exe (stored 0%)
>>   adding: cat.exe (stored 0%)
>> $ unzip test.zip
>> Archive:  test.zip
>>    creating: cat/
>>  extracting: cat/mouse.exe
>>  extracting: cat.exe

>> Works for me (tm).
>> Gerrit

> It doesn't work if "cat.exe" precedes the "cat/" directory in the archive.
>         Igor

Hmmm, I see.  Well, what do you think would be the easiest, fix stat()
or s.th. else in Cygwin or is this a feature that is needed for other
uses and cannot be fixed, or patch unzip to do some more/less checks
and let it extract independent of some functions opinion?


Gerrit
-- 
=^..^=


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

