diff options
author | Christopher Faylor <me@cgf.cx> | 2001-05-09 18:59:10 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2001-05-09 18:59:10 +0000 |
commit | cedb00be8982cfa9905b8552122689c21abb226d (patch) | |
tree | 540336ee610160ccd0a1999e3025a1c5e3678300 | |
parent | cd94b71c1b254eb9f2d0ef8cfe99f100430cd86a (diff) | |
download | cygnal-cedb00be8982cfa9905b8552122689c21abb226d.tar.gz cygnal-cedb00be8982cfa9905b8552122689c21abb226d.tar.bz2 cygnal-cedb00be8982cfa9905b8552122689c21abb226d.zip |
* path.cc (mount_info::conv_to_win32_path): Treat UNC paths the same as paths
including `:' or `\'.
-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 0c983617f..c278a9188 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,8 @@ +2001-05-10 Kazuhiro Fujieda <fujieda@jaist.ac.jp> + + * path.cc (mount_info::conv_to_win32_path): Treat UNC paths the same as + paths including `:' or `\'. + Wed May 9 14:46:32 2001 Christopher Faylor <cgf@cygnus.com> * fhandler.h (fhandler_termios::echo_erase): Declare new method. diff --git a/winsup/cygwin/path.cc b/winsup/cygwin/path.cc index 6ca78b470..048063dde 100644 --- a/winsup/cygwin/path.cc +++ b/winsup/cygwin/path.cc @@ -1171,7 +1171,7 @@ mount_info::conv_to_win32_path (const char *src_path, char *dst, /* An MS-DOS spec has either a : or a \. If this is found, short circuit most of the rest of this function. */ - if (strpbrk (src_path, ":\\") != NULL) + if (strpbrk (src_path, ":\\") != NULL || slash_unc_prefix_p (src_path)) { debug_printf ("%s already win32", src_path); rc = normalize_win32_path (src_path, dst); |