This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Windows/Posix path conversion fails on extra mount points


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]