This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Windows/Posix path conversion fails on extra mount points
- From: Thomas Wolff <towo at towo dot net>
- To: cygwin at cygwin dot com
- Date: Mon, 09 Feb 2015 00:04:18 +0100
- Subject: Windows/Posix path conversion fails on extra mount points
- Authentication-results: sourceware.org; auth=none
cygwin_create_path (CCP_WIN_A_TO_POSIX, "C:/cygwin/lib") -> "/usr/lib"
This is the correct directory, however, only by means of the extra mount
point
of /usr/lib; I think the result should rather be the likewise correct
but more intuitive "/lib".
There is software thatâs getting confused by this mix-up.
At least the round-trip works:
cygwin_create_path (CCP_POSIX_TO_WIN_A, "/usr/lib") -> "C:\cygwin\lib"
so a directory existing in the Windows world is again addressed; however,
this does not work if the directory is preceded with the cygwin root:
cygwin_create_path (CCP_POSIX_TO_WIN_A, "/cygdrive/c/cygwin/usr/lib") ->
"C:\cygwin\usr\lib"
Thomas
--
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