summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/mount.cc
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2009-01-09 16:20:26 +0000
committerCorinna Vinschen <corinna@vinschen.de>2009-01-09 16:20:26 +0000
commit54a83cc65add6561a3d6ed4af39c8b3a899a3d4a (patch)
tree001dac4daf54c24639b8bdf3f9fad9605b12e745 /winsup/cygwin/mount.cc
parentd95d8c5393988702112b8fcd154683150227cb7a (diff)
downloadcygnal-54a83cc65add6561a3d6ed4af39c8b3a899a3d4a.tar.gz
cygnal-54a83cc65add6561a3d6ed4af39c8b3a899a3d4a.tar.bz2
cygnal-54a83cc65add6561a3d6ed4af39c8b3a899a3d4a.zip
* mount.cc (mount_info::from_fstab_line): Always convert drive
letter in native path to uppercase. * path.cc (normalize_win32_path): Ditto. (path_prefix_p): Revert previous patch. * path.cc (symlink_info::check): Check for STATUS_INVALID_PARAMETER return code to circumvent weird behaviour of Samba 3.2.x shares.
Diffstat (limited to 'winsup/cygwin/mount.cc')
-rw-r--r--winsup/cygwin/mount.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/winsup/cygwin/mount.cc b/winsup/cygwin/mount.cc
index 364c77b01..67998b24c 100644
--- a/winsup/cygwin/mount.cc
+++ b/winsup/cygwin/mount.cc
@@ -876,6 +876,9 @@ mount_info::from_fstab_line (char *line, bool user)
char *cend = find_ws (c);
*cend = '\0';
native_path = conv_fstab_spaces (c);
+ /* Always convert drive letter to uppercase for case sensitivity. */
+ if (isdrive (native_path))
+ native_path[0] = cyg_toupper (native_path[0]);
/* Second field: POSIX path. */
c = skip_ws (cend + 1);
if (!*c)