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>2001-11-22 03:29:04 +0300
committerChristopher Faylor <me@cgf.cx>2001-11-22 03:29:04 +0300
commit53e61a867b154ddbf7a468dd94616ebc081dbd8f (patch)
tree0560aad4876135b4ec68c617f220f6c59857fd61
parent87f1a487ed37689e26330f8ec1d1222d753bcc71 (diff)
* path.cc (cygpath): Don't consider cygpath stuff when trying to derive native
paths.
-rw-r--r--winsup/utils/ChangeLog7
-rw-r--r--winsup/utils/path.cc3
2 files changed, 9 insertions, 1 deletions
diff --git a/winsup/utils/ChangeLog b/winsup/utils/ChangeLog
index 7e54935a9..0abc51769 100644
--- a/winsup/utils/ChangeLog
+++ b/winsup/utils/ChangeLog
@@ -1,3 +1,8 @@
+2001-11-21 Christopher Faylor <cgf@redhat.com>
+
+ * path.cc (cygpath): Don't consider cygpath stuff when trying to derive
+ native paths.
+
2001-11-20 Mark Bradshaw <bradshaw@staff.crosswalk.com>
* mkpasswd.c: include lmerr.h
@@ -123,7 +128,7 @@
2001-10-15 Christopher Faylor <cgf@redhat.com>
- * mkpasswd.cc (enum_users): Shorten "unused" passwd field.
+ * mkpasswd.cc (enum_users): Shorten "unused" passwd field.
2001-10-13 Christopher Faylor <cgf@redhat.com>
diff --git a/winsup/utils/path.cc b/winsup/utils/path.cc
index b7ddfde1b..d7d967098 100644
--- a/winsup/utils/path.cc
+++ b/winsup/utils/path.cc
@@ -283,6 +283,9 @@ cygpath (const char *s, ...)
for (m = mount_table; m->posix ; m++)
{
+ if (m->flags & MOUNT_AUTO)
+ continue;
+
int n = strlen (m->posix);
if (n < max_len || !path_prefix_p (m->posix, path, n))
continue;