aboutsummaryrefslogtreecommitdiff
path: root/winsup/cygwin/path.cc
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2005-05-17 01:08:58 +0000
committerChristopher Faylor <me@cgf.cx>2005-05-17 01:08:58 +0000
commitb55ba2f3da13dc697c57d7efe3b98c75da2a87b5 (patch)
tree89a4303b86614ed15748ad34ac1451680303c0b7 /winsup/cygwin/path.cc
parent451c738befa50461c659c9bcebfef0fcf9e9cd00 (diff)
downloadnewlib-b55ba2f3da13dc697c57d7efe3b98c75da2a87b5.zip
newlib-b55ba2f3da13dc697c57d7efe3b98c75da2a87b5.tar.gz
newlib-b55ba2f3da13dc697c57d7efe3b98c75da2a87b5.tar.bz2
* path.cc (path_conv::check): Remove embedded dots before slashes.
Diffstat (limited to 'winsup/cygwin/path.cc')
-rw-r--r--winsup/cygwin/path.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/winsup/cygwin/path.cc b/winsup/cygwin/path.cc
index 8672402..e3ab049 100644
--- a/winsup/cygwin/path.cc
+++ b/winsup/cygwin/path.cc
@@ -911,8 +911,8 @@ out:
tail = NULL;
else if (p[1] == '\\')
{
- error = ENOENT;
- return;
+ memmove (p, p + 1, strlen (p));
+ tail = NULL;
}
else if (!tail)
tail = p;