From 39add36fc3bc0cf244a408572d5a66fd4ce36eed Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Fri, 26 Dec 2003 18:26:17 +0000 Subject: * path.cc (mount_item::build_win32): Backslashify paths in non-managed case. --- winsup/cygwin/path.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'winsup/cygwin/path.cc') 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) { -- cgit v1.2.3