This is the mail archive of the cygwin-patches@sourceware.cygnus.com 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]

Re: rootdir


On Thu, Mar 16, 2000 at 08:06:24PM +0100, Corinna Vinschen wrote:
>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 think you're right.  It seems to solve the problem.  Thanks!  I wonder
if this accounts for other inexplicable behavior, like possibly Michael's
find problems.

Go ahead and check this change in along with the rest of your changes
but minus the rootdir() change (of course).

cgf

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