diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index a561333e0..956a7fb1a 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,8 @@ +2003-01-15 Christopher Faylor + + * path.cc (normalize_posix_path): Convert win32 path separators to + slashes when full path is specified. + 2003-01-15 Pierre Humblet * cmalloc.cc (_cmalloc): Fix memory leak. diff --git a/winsup/cygwin/path.cc b/winsup/cygwin/path.cc index fddcbea3b..aeeea9d87 100644 --- a/winsup/cygwin/path.cc +++ b/winsup/cygwin/path.cc @@ -205,7 +205,13 @@ normalize_posix_path (const char *src, char *dst) syscall_printf ("src %s", src); if (isdrive (src) || strpbrk (src, "\\:")) - return normalize_win32_path (src, dst); + { + int err = normalize_win32_path (src, dst); + if (!err && isdrive (dst)) + for (char *p = dst; (p = strchr (p, '\\')); p++) + *p = '/'; + return err; + } if (!isslash (src[0])) {