From 53e61a867b154ddbf7a468dd94616ebc081dbd8f Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Thu, 22 Nov 2001 00:29:04 +0000 Subject: [PATCH] * path.cc (cygpath): Don't consider cygpath stuff when trying to derive native paths. --- winsup/utils/ChangeLog | 7 ++++++- winsup/utils/path.cc | 3 +++ 2 files changed, 9 insertions(+), 1 deletion(-) 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 + + * path.cc (cygpath): Don't consider cygpath stuff when trying to derive + native paths. + 2001-11-20 Mark Bradshaw * mkpasswd.c: include lmerr.h @@ -123,7 +128,7 @@ 2001-10-15 Christopher Faylor - * mkpasswd.cc (enum_users): Shorten "unused" passwd field. + * mkpasswd.cc (enum_users): Shorten "unused" passwd field. 2001-10-13 Christopher Faylor 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;