summaryrefslogtreecommitdiffstats
path: root/winsup/utils/path.cc
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2001-11-22 00:29:04 +0000
committerChristopher Faylor <me@cgf.cx>2001-11-22 00:29:04 +0000
commit53e61a867b154ddbf7a468dd94616ebc081dbd8f (patch)
tree0560aad4876135b4ec68c617f220f6c59857fd61 /winsup/utils/path.cc
parent87f1a487ed37689e26330f8ec1d1222d753bcc71 (diff)
downloadcygnal-53e61a867b154ddbf7a468dd94616ebc081dbd8f.tar.gz
cygnal-53e61a867b154ddbf7a468dd94616ebc081dbd8f.tar.bz2
cygnal-53e61a867b154ddbf7a468dd94616ebc081dbd8f.zip
* path.cc (cygpath): Don't consider cygpath stuff when trying to derive native
paths.
Diffstat (limited to 'winsup/utils/path.cc')
-rw-r--r--winsup/utils/path.cc3
1 files changed, 3 insertions, 0 deletions
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;