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
path: root/winsup
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2002-03-07 04:31:08 +0300
committerChristopher Faylor <me@cgf.cx>2002-03-07 04:31:08 +0300
commit9420d2b833b90df94e425b84b17b49735e1caa39 (patch)
treebee976e4bf6b5e40c72c504f90eda7a9d13ea15d /winsup
parent2a606041a1d6e841ebe7c3158e12bd6d6ad1b51e (diff)
* path.cc (normalize_posix_path): Avoid runs of '.'s > 2.
Diffstat (limited to 'winsup')
-rw-r--r--winsup/cygwin/ChangeLog4
-rw-r--r--winsup/cygwin/path.cc6
2 files changed, 9 insertions, 1 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index ef02345a9..a8e45ab48 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,3 +1,7 @@
+2002-03-06 Christopher Faylor <cgf@redhat.com>
+
+ * path.cc (normalize_posix_path): Avoid runs of '.'s > 2.
+
2002-03-05 Christopher Faylor <cgf@redhat.com>
* errno.cc: Change EPERM associated text to "Operation not permitted"
diff --git a/winsup/cygwin/path.cc b/winsup/cygwin/path.cc
index 01798209f..e95f6caf1 100644
--- a/winsup/cygwin/path.cc
+++ b/winsup/cygwin/path.cc
@@ -249,7 +249,11 @@ normalize_posix_path (const char *src, char *dst)
break;
}
else if (src[2] && !isslash (src[2]))
- break;
+ {
+ if (src[2] == '.')
+ return ENOENT;
+ break;
+ }
else
{
while (dst > dst_start && !isslash (*--dst))