This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Re: Patch for zip to deal with dos paths
- To: Michael Schaap <cygwin at mscha dot com>
- Subject: Re: Patch for zip to deal with dos paths
- From: "Charles S. Wilson" <cwilson at ece dot gatech dot edu>
- Date: Wed, 27 Jun 2001 19:28:34 -0400
- CC: cygwin <cygwin at cygwin dot com>
- References: <5.1.0.14.2.20010628002331.03716288@imap.mscha.org>
I will take a look after I get back -- I'm leaving town for a few days
starting tonight.
--Chuck
zip/unzip maintainer
Michael Schaap wrote:
> Hi all,
>
> For what it's worth. Here's a patch to zip that fixes the behaviour
> with regard to dos path names. It deals with two issues:
> - backslashes are converted to slashes,
> - drive names are stripped when converting an absolute to relative path.
>
> The behaviour of cygwin zip with this patch is the same as the native
> win32 version. In fact, the code added to unix/unix.c essentially comes
> from win32/win32zip.c (slightly simplified).
>
> Of course, this breaks the feature of using NTFS streams with a single
> character file name. ;-)
>
> Take it or leave it,
>
> - Michael
>
>
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/