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/ChangeLog2
-rw-r--r--winsup/cygwin/path.cc6
2 files changed, 6 insertions, 2 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index c573a3483..12df069d9 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,4 +1,4 @@
-Fri Apr 21 01:27:47 2000 Christopher Faylor <cgf@cygnus.com>
+Fri Apr 21 10:37:08 2000 Christopher Faylor <cgf@cygnus.com>
* path.cc (normalize_posix_path): Previous two patches were still
incorrect so rewrite this function to deal with trailing dots.
diff --git a/winsup/cygwin/path.cc b/winsup/cygwin/path.cc
index 0290ed7a3..463fb6c4f 100644
--- a/winsup/cygwin/path.cc
+++ b/winsup/cygwin/path.cc
@@ -561,7 +561,11 @@ normalize_posix_path (const char *cwd, const char *src, char *dst)
strcpy (dst, cwd);
dst = strchr (dst, '\0');
if (*src == '.')
- goto sawdot;
+ {
+ if (dst == dst_start + 1)
+ dst--;
+ goto sawdot;
+ }
if (dst > dst_start && !isslash (dst[-1]))
*dst++ = '/';
}