From 6b4d6adebd0914b3930950982f3479c33cb7978d Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Tue, 19 May 2009 00:42:35 +0000 Subject: [PATCH] * mount.cc (mount_info::add_item): Avoid using any-old '/' as indicating root. --- winsup/cygwin/ChangeLog | 5 +++++ winsup/cygwin/mount.cc | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 7c1dfc921..db158ead2 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,8 @@ +2009-05-18 Christopher Faylor + + * mount.cc (mount_info::add_item): Avoid using any-old '/' as + indicating root. + 2009-05-18 Christopher Faylor * mount.cc (mount_info::got_usr_bin): Mark as NO_COPY. diff --git a/winsup/cygwin/mount.cc b/winsup/cygwin/mount.cc index f6e4bace7..7c7f58a7b 100644 --- a/winsup/cygwin/mount.cc +++ b/winsup/cygwin/mount.cc @@ -1301,7 +1301,7 @@ mount_info::add_item (const char *native, const char *posix, if (strcmp (posixtmp, "/usr/lib") == 0) got_usr_lib = true; - if (posixtmp[0] == '/' && posixtmp[1] == '\0') + if (posixtmp[0] == '/' && posixtmp[1] == '\0' && !(mountflags & MOUNT_CYGDRIVE)) root_idx = i; mount[i].init (nativetmp, posixtmp, mountflags);