From 8d8bc1e13965dea49b3991dc6e6cbcf7d6f93bc7 Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Wed, 12 May 2004 14:04:23 +0000 Subject: * path.cc (path_conv::check): Don't bail out with error if path is "//". --- winsup/cygwin/path.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'winsup/cygwin/path.cc') 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; -- cgit v1.2.3