diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2010-02-15 15:42:31 +0300 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2010-02-15 15:42:31 +0300 |
commit | 93579594b7e667e952f9b5c4b1e1522b54bf0f23 (patch) | |
tree | 78edb504a901dd83ae25940f453a09d02740193f /winsup/cygwin/mount.cc | |
parent | a61421f1fb639de61c1bd42bd7669c5664aacbe3 (diff) |
* mount.cc (mount_info::conv_to_win32_path): Set UNC path flags to
cygdrive prefix path flags.
Diffstat (limited to 'winsup/cygwin/mount.cc')
-rw-r--r-- | winsup/cygwin/mount.cc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/winsup/cygwin/mount.cc b/winsup/cygwin/mount.cc index 63507e78c..e8d181125 100644 --- a/winsup/cygwin/mount.cc +++ b/winsup/cygwin/mount.cc @@ -500,6 +500,15 @@ mount_info::conv_to_win32_path (const char *src_path, char *dst, device& dev, dev = *netdrive_dev; set_flags (flags, PATH_BINARY); } + else + { + /* For UNC paths, use the cygdrive prefix flags as default setting. + This is more natural since UNC paths, just like cygdrive paths, + are rather (warning, poetic description ahead) windows into the + native Win32 world. This also gives the user an elegant way to + change the settings for those paths in a central place. */ + set_flags (flags, (unsigned) cygdrive_flags); + } backslashify (src_path, dst, 0); /* Go through chroot check */ goto out; |