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:
-rw-r--r--winsup/cygwin/ChangeLog5
-rw-r--r--winsup/cygwin/path.cc2
2 files changed, 6 insertions, 1 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index b677111f4..92ddce3d7 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,5 +1,10 @@
2005-06-24 Corinna Vinschen <corinna@vinschen.de>
+ * path.cc (path_conv::check): Don't strip trailing dots and spaces
+ at the start of the path.
+
+2005-06-24 Corinna Vinschen <corinna@vinschen.de>
+
* fhandler.cc (rootdir): Don't set errno.
* syscalls.cc (statvfs): Set errno to ENOTDIR if rootdir() failed.
diff --git a/winsup/cygwin/path.cc b/winsup/cygwin/path.cc
index 1e315e492..ca955cb3a 100644
--- a/winsup/cygwin/path.cc
+++ b/winsup/cygwin/path.cc
@@ -928,7 +928,7 @@ out:
else if (!tail)
tail = p;
- if (!tail)
+ if (!tail || tail == path)
/* nothing */;
else if (tail[-1] != '\\')
{