* path.cc (normalize_posix_path): Convert win32 path separators to slashes when
full path is specified.
This commit is contained in:
parent
ce9eeb04a6
commit
188132541b
|
@ -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>
|
2003-01-15 Pierre Humblet <pierre.humblet@ieee.org>
|
||||||
|
|
||||||
* cmalloc.cc (_cmalloc): Fix memory leak.
|
* cmalloc.cc (_cmalloc): Fix memory leak.
|
||||||
|
|
|
@ -205,7 +205,13 @@ normalize_posix_path (const char *src, char *dst)
|
||||||
syscall_printf ("src %s", src);
|
syscall_printf ("src %s", src);
|
||||||
|
|
||||||
if (isdrive (src) || strpbrk (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]))
|
if (!isslash (src[0]))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue