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


Hi Ken,

On Feb 14 14:08, Ken Brown wrote:
> 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.

Right.  You're hitting a border case there.  I fixed in in the repo.


Thanks,
Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat

Attachment: signature.asc
Description: PGP signature


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