Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2009-05-19 04:42:35 +0400
committerChristopher Faylor <me@cgf.cx>2009-05-19 04:42:35 +0400
commit6b4d6adebd0914b3930950982f3479c33cb7978d (patch)
tree62f7ad0bf30b7a20f8cb2e2001a6e4ffb4f33d74 /winsup/cygwin/mount.cc
parent1a7613f0b82be784850b463624686e8dded3b357 (diff)
* mount.cc (mount_info::add_item): Avoid using any-old '/' as indicating root.
Diffstat (limited to 'winsup/cygwin/mount.cc')
-rw-r--r--winsup/cygwin/mount.cc2
1 files changed, 1 insertions, 1 deletions
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);