diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2006-08-03 15:29:30 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2006-08-03 15:29:30 +0000 |
commit | fb43e6237c2c7a9d81017a7f6254035afb04c633 (patch) | |
tree | bf7e6dfb91aa1a58bfe6e46c4491145a25ef5709 | |
parent | bb1a7afa67fc055bfcb4a91d6295c1067980387a (diff) | |
download | cygnal-fb43e6237c2c7a9d81017a7f6254035afb04c633.tar.gz cygnal-fb43e6237c2c7a9d81017a7f6254035afb04c633.tar.bz2 cygnal-fb43e6237c2c7a9d81017a7f6254035afb04c633.zip |
* path.cc (vconcat): Don't convert backslahes to slashes.
(cygpath): Return native path with all backslashes.
-rw-r--r-- | winsup/utils/ChangeLog | 5 | ||||
-rw-r--r-- | winsup/utils/path.cc | 5 |
2 files changed, 6 insertions, 4 deletions
diff --git a/winsup/utils/ChangeLog b/winsup/utils/ChangeLog index 8e1afeccc..9f6ff8ca0 100644 --- a/winsup/utils/ChangeLog +++ b/winsup/utils/ChangeLog @@ -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. 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; |