This is the mail archive of the
cygwin-patches@sourceware.cygnus.com
mailing list for the Cygwin project.
Re: rootdir
Corinna Vinschen wrote:
> [...]
> at the end of path_conv::path_conv() and I can get a relative path
> in full_path if the cwd is on a remote drive that is _not_ mounted
> with drive letter:
>
> cd //server/share
> strace ls -l some_file
> === snip ===
> x y [main] ls 1008 path_conv::path_conv: full_path = some_file
> === snap ===
I believe, I have the found the problem. The following is a code
snippet from mount_info::conv_to_win32_path(), near line 1002:
===== SNIP =====
if (i >= nmounts)
{
if (slash_drive_prefix_p (pathbuf))
slash_drive_to_win32_path (pathbuf, dst, trailing_slash_p);
else
backslashify (src_path, dst, trailing_slash_p); /* just convert
*/
===== SNAP =====
Shouldn't this be:
backslashify (pathbuf, dst, trailing_slash_p); /* just convert
*/
^^^^^^^
??? I'll try it in a few minutes...
Corinna