diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2008-03-14 20:43:28 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2008-03-14 20:43:28 +0000 |
commit | d63c2da552bc89c6748c31af651699b77fc1efe6 (patch) | |
tree | 60b0f22bcb42139330c8c68e425e3539c49904fb /winsup/cygwin/path.cc | |
parent | 56f19ae0e933794e899fe7833a812c5d96730fcf (diff) | |
download | cygnal-d63c2da552bc89c6748c31af651699b77fc1efe6.tar.gz cygnal-d63c2da552bc89c6748c31af651699b77fc1efe6.tar.bz2 cygnal-d63c2da552bc89c6748c31af651699b77fc1efe6.zip |
* fcntl.cc (fcntl_worker): Protect with a 'myfault'.
* path.cc (normalize_posix_path): Treat X:/ as Win32 path, too.
* smallprint.cc (__wrn): New static function.
(__small_vswprintf): New function to generate WCHAR strings.
(__small_swprintf): Ditto.
* winsup.h (__small_swprintf): Declare.
(__small_vswprintf): Declare.
Diffstat (limited to 'winsup/cygwin/path.cc')
-rw-r--r-- | winsup/cygwin/path.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/path.cc b/winsup/cygwin/path.cc index aa390bcd2..84490f287 100644 --- a/winsup/cygwin/path.cc +++ b/winsup/cygwin/path.cc @@ -253,7 +253,7 @@ normalize_posix_path (const char *src, char *dst, char *&tail) char *dst_start = dst; syscall_printf ("src %s", src); - if ((isdrive (src) && src[2] == '\\') || *src == '\\') + if ((isdrive (src) && isdirsep (src[2])) || *src == '\\') goto win32_path; tail = dst; |