Bug with paths containing double slashes after double dot after a mount point

Illia Bobyr Illia.Bobyr@ronin-capital.com
Fri Jun 17 21:07:00 GMT 2011


On 6/17/2011 1:59 PM, Vadim Zeitlin wrote:
>   Hello,
>
>   I think I've discovered a bug with handling specific forms of "mixed" form
> paths in Cygwin 1.7. Here is the briefest possible demonstration:
>
> 	$ ls C:/cygwin/lib/X11/../libc.a
> 	C:/cygwin/lib/X11/../libc.a
> 	$ ls C:/cygwin/lib/X11/..//libc.a
> 	ls: cannot access C:/cygwin/lib/X11/..//libc.a: No such file or directory
>
> [...]
>
> P.S. I don't include detailed cygcheck output as I don't think it's of any
>       interest because the bug isn't system-dependent but please let me know
>       if it would be useful to send it nevertheless, e.g. if you can't
>       reproduce this behaviour.

Does not happen on my box:

$ ls C:/cygwin/lib/X11/../libc.a
C:/cygwin/lib/X11/../libc.a

$ ls C:/cygwin/lib/X11/..//libc.a
C:/cygwin/lib/X11/..//libc.a

$ mount|fgrep lib
C:/cygwin/lib on /usr/lib type ntfs (binary,auto)

$ uname -a
CYGWIN_NT-5.1 WITD-ORL-IBOBY1 1.7.9(0.237/5/3) 2011-03-29 10:10 i686 Cygwin

Ilya Bobyr
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: cygcheck.out
URL: <http://cygwin.com/pipermail/cygwin/attachments/20110617/30fea09a/attachment.ksh>
-------------- next part --------------
--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


More information about the Cygwin mailing list