cygwin_conv_path sometimes removes trailing slash

Corinna Vinschen corinna-cygwin@cygwin.com
Mon Feb 15 15:26:00 GMT 2016


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/20160215/aae9a416/attachment.sig>


More information about the Cygwin mailing list