Windows/Posix path conversion fails on extra mount points

Thomas Wolff towo@towo.net
Sun Feb 8 23:04:00 GMT 2015


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



More information about the Cygwin mailing list