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.cc6
2 files changed, 10 insertions, 1 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index 73ae6856a..e466f493e 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,5 +1,10 @@
Fri Nov 17 12:28:00 2000 Corinna Vinschen <corinna@vinschen.de>
+ * path.cc (normalize_posix_path): Special care for root directory
+ in case of files beginning with a dot.
+
+Fri Nov 17 12:28:00 2000 Corinna Vinschen <corinna@vinschen.de>
+
* syslog.cc (syslog): Add users SID to NT syslog entry.
Thu Nov 16 15:59:58 2000 Bradley A. Town <townba@pobox.com>
diff --git a/winsup/cygwin/path.cc b/winsup/cygwin/path.cc
index b878920f7..a0f4ebd36 100644
--- a/winsup/cygwin/path.cc
+++ b/winsup/cygwin/path.cc
@@ -609,7 +609,11 @@ normalize_posix_path (const char *src, char *dst)
}
dst = strchr (dst, '\0');
if (*src == '.')
- goto sawdot;
+ {
+ if (dst == dst_start + 1 && *dst_start == '/')
+ --dst;
+ goto sawdot;
+ }
if (dst > dst_start && !isslash (dst[-1]))
*dst++ = '/';
}