diff options
author | Christopher Faylor <me@cgf.cx> | 2001-11-22 00:29:04 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2001-11-22 00:29:04 +0000 |
commit | 53e61a867b154ddbf7a468dd94616ebc081dbd8f (patch) | |
tree | 0560aad4876135b4ec68c617f220f6c59857fd61 | |
parent | 87f1a487ed37689e26330f8ec1d1222d753bcc71 (diff) | |
download | newlib-53e61a867b154ddbf7a468dd94616ebc081dbd8f.zip newlib-53e61a867b154ddbf7a468dd94616ebc081dbd8f.tar.gz newlib-53e61a867b154ddbf7a468dd94616ebc081dbd8f.tar.bz2 |
* path.cc (cygpath): Don't consider cygpath stuff when trying to derive native
paths.
-rw-r--r-- | winsup/utils/ChangeLog | 7 | ||||
-rw-r--r-- | winsup/utils/path.cc | 3 |
2 files changed, 9 insertions, 1 deletions
diff --git a/winsup/utils/ChangeLog b/winsup/utils/ChangeLog index 7e54935..0abc517 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 b7ddfde..d7d9670 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; |