From fb43e6237c2c7a9d81017a7f6254035afb04c633 Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Thu, 3 Aug 2006 15:29:30 +0000 Subject: * path.cc (vconcat): Don't convert backslahes to slashes. (cygpath): Return native path with all backslashes. --- winsup/utils/path.cc | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'winsup/utils/path.cc') diff --git a/winsup/utils/path.cc b/winsup/utils/path.cc index 4e28522ae..57bd3a4ff 100644 --- a/winsup/utils/path.cc +++ b/winsup/utils/path.cc @@ -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; -- cgit v1.2.3