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.cc4
1 files changed, 2 insertions, 2 deletions
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;