* path.cc (normalize_posix_path): Convert win32 path separators to slashes when

full path is specified.
This commit is contained in:
Christopher Faylor 2003-01-16 01:49:14 +00:00
parent ce9eeb04a6
commit 188132541b
2 changed files with 12 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2003-01-15 Christopher Faylor <cgf@redhat.com>
* path.cc (normalize_posix_path): Convert win32 path separators to
slashes when full path is specified.
2003-01-15 Pierre Humblet <pierre.humblet@ieee.org>
* cmalloc.cc (_cmalloc): Fix memory leak.

View File

@ -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]))
{