* path.cc (vconcat): Don't convert backslahes to slashes.

(cygpath): Return native path with all backslashes.
This commit is contained in:
Corinna Vinschen 2006-08-03 15:29:30 +00:00
parent bb1a7afa67
commit fb43e6237c
2 changed files with 6 additions and 4 deletions

View File

@ -1,3 +1,8 @@
2006-08-03 Corinna Vinschen <corinna@vinschen.de>
* path.cc (vconcat): Don't convert backslahes to slashes.
(cygpath): Return native path with all backslashes.
2006-08-02 Corinna Vinschen <corinna@vinschen.de>
* Makefile.in (cygpath.exe): Add rule to link cygpath against ntdll.dll.

View File

@ -229,9 +229,6 @@ vconcat (const char *s, va_list v)
va_end (v);
char *d, *p;
for (p = rv; *p; p++)
if (*p == '\\')
*p = '/';
/* concat is only used for urls and files, so we can safely
canonicalize the results */
@ -301,7 +298,7 @@ cygpath (const char *s, ...)
else if (max_len == (int) strlen (path))
native = strdup (match->native);
else
native = concat (match->native, "/", path + max_len, NULL);
native = concat (match->native, "\\", path + max_len, NULL);
free (path);
return native;