Mercurial > gnulib
changeset 14056:602afdb74dc3
mountlist: tweak previous commit
* lib/mountlist.c (me_remote): Guarantee trailing backslash.
Reported by Paul Eggert.
Signed-off-by: Eric Blake <eblake@redhat.com>
author | Eric Blake <eblake@redhat.com> |
---|---|
date | Wed, 29 Dec 2010 15:53:15 -0700 |
parents | b968dd130aed |
children | f00add3c323d 94601a984b2b |
files | ChangeLog lib/mountlist.c |
diffstat | 2 files changed, 6 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog Tue Dec 28 10:07:58 2010 -0700 +++ b/ChangeLog Wed Dec 29 15:53:15 2010 -0700 @@ -1,5 +1,9 @@ 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.
--- a/lib/mountlist.c Tue Dec 28 10:07:58 2010 -0700 +++ b/lib/mountlist.c Wed Dec 29 15:53:15 2010 -0700 @@ -166,7 +166,8 @@ { 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: