diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 3fd05d912..5b43c3993 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,7 @@ +2004-05-12 Corinna Vinschen + + * path.cc (path_conv::check): Don't bail out with error if path is "//". + 2004-05-12 Corinna Vinschen * cygheap.h (struct init_cygheap): Add mt_h member. 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;