summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/mount.cc
diff options
context:
space:
mode:
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)