cygwin_conv_path sometimes removes trailing slash

Ken Brown
Sun Feb 14 19:08:00 GMT 2016

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.


Problem reports:
Unsubscribe info:

More information about the Cygwin mailing list