public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Bug with paths containing double slashes after double dot after a mount point
@ 2011-06-17 19:00 Vadim Zeitlin
  2011-06-17 21:07 ` Illia Bobyr
  0 siblings, 1 reply; 13+ messages in thread
From: Vadim Zeitlin @ 2011-06-17 19:00 UTC (permalink / raw)
  To: cygwin

[-- Attachment #1: Type: TEXT/PLAIN, Size: 1820 bytes --]

 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

This is on a system with perfectly standard Cygwin installation and
standard /usr/lib mount:

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

The bug is not specific to this machine (at least it also happens in a
freshly created VM with a very minimal Cygwin 1.7 installation too) nor to
this mount point (I originally noticed it with one of my own manually
created ones). Neither is it specific to the concrete file or directory
names.

 The problem does *not* arise with /cygdrive/c/cygwin/lib/X11/..//libc.a
Unix-style paths but unfortunately I can't easily get rid of the mixed
format paths in my situation: the original path comes from "g++
-print-search-dirs" output from MinGW g++ that I use from Cygwin
environment and I can't even apply cygpath to convert it because this is
all done by libtool. And because the directory containing the libraries has
a trailing slash in g++ output libtool fails to create any libraries in it
resulting in various interesting problems... So while the real solution
would probably be to switch to MinGW cross-compiler and avoid mixing of
MinGW and Cygwin paths in the first place, for now I'd gladly welcome any
ideas about how to work around this bug.

 Thanks in advance,
VZ

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.

[-- Attachment #2: Type: APPLICATION/PGP-SIGNATURE, Size: 196 bytes --]

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2011-06-18 15:56 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-06-17 19:00 Bug with paths containing double slashes after double dot after a mount point Vadim Zeitlin
2011-06-17 21:07 ` Illia Bobyr
2011-06-17 21:23   ` Vadim Zeitlin
2011-06-17 21:53     ` Greg Chicares
2011-06-17 22:32       ` Vadim Zeitlin
2011-06-17 23:30         ` Fahlgren, Eric
2011-06-18  8:32           ` Corinna Vinschen
2011-06-18 11:18             ` Vadim Zeitlin
2011-06-18 11:34               ` Corinna Vinschen
2011-06-18 13:44                 ` Vadim Zeitlin
2011-06-18 15:56                   ` Corinna Vinschen
2011-06-18 14:00                 ` Charles Wilson
2011-06-18 14:42                   ` Vadim Zeitlin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).