summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/path.cc
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/cygwin/path.cc')
-rw-r--r--winsup/cygwin/path.cc6
1 files changed, 5 insertions, 1 deletions
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))