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]

Re: cygwin_conv_path sometimes removes trailing slash


On 1/29/2016 10:21 PM, Ken Brown wrote:
I'm using cygwin_conv_path to convert Win32 paths to POSIX paths, and
I'm puzzled by the conversion

   d:/ --> /cygdrive/d

without the trailing slash.

Hi Corinna,

After your recent patch (git commit 8b83da2), I now see the conversion

  d:/ --> /cygdrive/d/

as expected.  But I have

  C: /c some_fs binary,posix=0 0 0

in my /etc/fstab, and I get the conversion

  C:/ --> /c

I would expect conversion to preserve the trailing slash here too.

Ken

--
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]