summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2010-02-15 12:42:31 +0000
committerCorinna Vinschen <corinna@vinschen.de>2010-02-15 12:42:31 +0000
commit93579594b7e667e952f9b5c4b1e1522b54bf0f23 (patch)
tree78edb504a901dd83ae25940f453a09d02740193f
parenta61421f1fb639de61c1bd42bd7669c5664aacbe3 (diff)
downloadcygnal-93579594b7e667e952f9b5c4b1e1522b54bf0f23.tar.gz
cygnal-93579594b7e667e952f9b5c4b1e1522b54bf0f23.tar.bz2
cygnal-93579594b7e667e952f9b5c4b1e1522b54bf0f23.zip
* mount.cc (mount_info::conv_to_win32_path): Set UNC path flags to
cygdrive prefix path flags.
-rw-r--r--winsup/cygwin/ChangeLog5
-rw-r--r--winsup/cygwin/mount.cc9
2 files changed, 14 insertions, 0 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index a908136de..7bc30b912 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,3 +1,8 @@
+2010-02-15 Corinna Vinschen <corinna@vinschen.de>
+
+ * mount.cc (mount_info::conv_to_win32_path): Set UNC path flags to
+ cygdrive prefix path flags.
+
2010-02-14 Christopher Faylor <me+cygwin@cgf.cx>
* fhandler.cc (fhandler_base::setup_overlapped): Don't set signalled
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;