summaryrefslogtreecommitdiffstats
path: root/winsup
diff options
context:
space:
mode:
Diffstat (limited to 'winsup')
-rw-r--r--winsup/cygwin/ChangeLog4
-rw-r--r--winsup/cygwin/path.cc2
2 files changed, 5 insertions, 1 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index 3fd05d912..5b43c3993 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,5 +1,9 @@
2004-05-12 Corinna Vinschen <corinna@vinschen.de>
+ * path.cc (path_conv::check): Don't bail out with error if path is "//".
+
+2004-05-12 Corinna Vinschen <corinna@vinschen.de>
+
* cygheap.h (struct init_cygheap): Add mt_h member.
* fhandler_tape.cc (mt_h): Drop in favor of cygheap based handle.
(mtinfo_init): Use cygheap->mt_h handle. Protect it.
diff --git a/winsup/cygwin/path.cc b/winsup/cygwin/path.cc
index d40b40f54..4e0b3d802 100644
--- a/winsup/cygwin/path.cc
+++ b/winsup/cygwin/path.cc
@@ -559,7 +559,7 @@ path_conv::check (const char *src, unsigned opt,
not by native NT functions. */
while (tail[-1] == '.' || tail[-1] == ' ')
tail--;
- if (isslash (tail[-1]))
+ if (tail > path_copy + 1 && isslash (tail[-1]))
{
error = ENOENT;
return;