* mount.cc (mount_info::add_item): Avoid using any-old '/' as indicating root.

This commit is contained in:
Christopher Faylor 2009-05-19 00:42:35 +00:00
parent 1a7613f0b8
commit 6b4d6adebd
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2009-05-18 Christopher Faylor <me+cygwin@cgf.cx>
* mount.cc (mount_info::add_item): Avoid using any-old '/' as
indicating root.
2009-05-18 Christopher Faylor <me+cygwin@cgf.cx> 2009-05-18 Christopher Faylor <me+cygwin@cgf.cx>
* mount.cc (mount_info::got_usr_bin): Mark as NO_COPY. * mount.cc (mount_info::got_usr_bin): Mark as NO_COPY.

View File

@ -1301,7 +1301,7 @@ mount_info::add_item (const char *native, const char *posix,
if (strcmp (posixtmp, "/usr/lib") == 0) if (strcmp (posixtmp, "/usr/lib") == 0)
got_usr_lib = true; got_usr_lib = true;
if (posixtmp[0] == '/' && posixtmp[1] == '\0') if (posixtmp[0] == '/' && posixtmp[1] == '\0' && !(mountflags & MOUNT_CYGDRIVE))
root_idx = i; root_idx = i;
mount[i].init (nativetmp, posixtmp, mountflags); mount[i].init (nativetmp, posixtmp, mountflags);