diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2005-06-24 13:15:05 +0400 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2005-06-24 13:15:05 +0400 |
commit | 677ded600cd382e406ecc6307c5477ad27473f1d (patch) | |
tree | 180a55b341ef8793ca86a021d5e6760130415ce9 | |
parent | 3b12a57cb6575f24443931871ed169c54a802df5 (diff) |
* path.cc (path_conv::check): Don't strip trailing dots and spaces
at the start of the path.
-rw-r--r-- | winsup/cygwin/ChangeLog | 5 | ||||
-rw-r--r-- | winsup/cygwin/path.cc | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index b677111f4..92ddce3d7 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,5 +1,10 @@ 2005-06-24 Corinna Vinschen <corinna@vinschen.de> + * path.cc (path_conv::check): Don't strip trailing dots and spaces + at the start of the path. + +2005-06-24 Corinna Vinschen <corinna@vinschen.de> + * fhandler.cc (rootdir): Don't set errno. * syscalls.cc (statvfs): Set errno to ENOTDIR if rootdir() failed. diff --git a/winsup/cygwin/path.cc b/winsup/cygwin/path.cc index 1e315e492..ca955cb3a 100644 --- a/winsup/cygwin/path.cc +++ b/winsup/cygwin/path.cc @@ -928,7 +928,7 @@ out: else if (!tail) tail = p; - if (!tail) + if (!tail || tail == path) /* nothing */; else if (tail[-1] != '\\') { |