diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2004-05-12 18:04:23 +0400 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2004-05-12 18:04:23 +0400 |
commit | 8d8bc1e13965dea49b3991dc6e6cbcf7d6f93bc7 (patch) | |
tree | 15eb339fa6824a6469029664377c8541509657d9 /winsup | |
parent | 191ea07aa5eff3a377f9b5eed6c25755965d4ccb (diff) |
* path.cc (path_conv::check): Don't bail out with error if path is "//".
Diffstat (limited to 'winsup')
-rw-r--r-- | winsup/cygwin/ChangeLog | 4 | ||||
-rw-r--r-- | winsup/cygwin/path.cc | 2 |
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; |