summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/path.cc
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2003-12-26 18:26:17 +0000
committerChristopher Faylor <me@cgf.cx>2003-12-26 18:26:17 +0000
commit39add36fc3bc0cf244a408572d5a66fd4ce36eed (patch)
treef9edadabb4a4c5f47f334728cc76885079ee7abb /winsup/cygwin/path.cc
parent91301b852f178803c696706bd2b40d98f932645c (diff)
downloadcygnal-39add36fc3bc0cf244a408572d5a66fd4ce36eed.tar.gz
cygnal-39add36fc3bc0cf244a408572d5a66fd4ce36eed.tar.bz2
cygnal-39add36fc3bc0cf244a408572d5a66fd4ce36eed.zip
* path.cc (mount_item::build_win32): Backslashify paths in non-managed case.
Diffstat (limited to 'winsup/cygwin/path.cc')
-rw-r--r--winsup/cygwin/path.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/winsup/cygwin/path.cc b/winsup/cygwin/path.cc
index 0f60be4d1..a7d95df71 100644
--- a/winsup/cygwin/path.cc
+++ b/winsup/cygwin/path.cc
@@ -1280,7 +1280,10 @@ mount_item::build_win32 (char *dst, const char *src, unsigned *outflags, unsigne
else if ((!(flags & MOUNT_ENC) && isdrive (dst) && !dst[2]) || *p)
dst[n++] = '\\';
if (!*p || !(flags & MOUNT_ENC))
- strcpy (dst + n, p);
+ {
+ strcpy (dst + n, p);
+ backslashify (dst, dst, 0);
+ }
else
while (*p)
{