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>2005-05-17 05:08:58 +0400
committerChristopher Faylor <me@cgf.cx>2005-05-17 05:08:58 +0400
commitb55ba2f3da13dc697c57d7efe3b98c75da2a87b5 (patch)
tree89a4303b86614ed15748ad34ac1451680303c0b7 /winsup/cygwin
parent451c738befa50461c659c9bcebfef0fcf9e9cd00 (diff)
* path.cc (path_conv::check): Remove embedded dots before slashes.
Diffstat (limited to 'winsup/cygwin')
-rw-r--r--winsup/cygwin/ChangeLog4
-rw-r--r--winsup/cygwin/path.cc4
2 files changed, 6 insertions, 2 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index 3c11a55de..70573a831 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,3 +1,7 @@
+2005-05-16 Christopher Faylor <cgf@timesys.com>
+
+ * path.cc (path_conv::check): Remove embedded dots before slashes.
+
2005-05-16 Corinna Vinschen <corinna@vinschen.de>
* environ.cc (conv_envvars): Remove LD_LIBRARY_PATH entirely.
diff --git a/winsup/cygwin/path.cc b/winsup/cygwin/path.cc
index 867240255..e3ab049ce 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;