Patch for zip to deal with dos paths

Michael Schaap cygwin@mscha.com
Wed Jun 27 15:30:00 GMT 2001


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
zip_dosnames.patch
--
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/

-------------- next part --------------
A non-text attachment was scrubbed...
Name: zip_dosnames.patch
Type: text/x-diff
Size: 847 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/20010627/d78a31d2/attachment.bin>


More information about the Cygwin mailing list