* lib/mountlist.c (me_remote): Guarantee trailing backslash.
Reported by Paul Eggert.
Signed-off-by: Eric Blake <eblake@redhat.com>
2010-12-29 Eric Blake <eblake@redhat.com>
+ mountlist: tweak previous commit
+ * lib/mountlist.c (me_remote): Guarantee trailing backslash.
+ Reported by Paul Eggert.
+
mountlist: fix local drive detection on cygwin
* lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
that works for cygwin.
{
if (fs_name[0] && fs_name[1] == ':')
{
- char const drive[3] = { fs_name[0], ':', '\0' };
+ char drive[4];
+ sprintf (drive, "%c:\\", fs_name[0]);
switch (GetDriveType (drive))
{
case DRIVE_REMOVABLE: