summaryrefslogtreecommitdiffstats
path: root/winsup/utils/mount.cc
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/utils/mount.cc')
-rw-r--r--winsup/utils/mount.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/winsup/utils/mount.cc b/winsup/utils/mount.cc
index 7c2f2a172..cd3131028 100644
--- a/winsup/utils/mount.cc
+++ b/winsup/utils/mount.cc
@@ -275,7 +275,7 @@ main (int argc, char **argv)
case saw_change_cygdrive_prefix:
if (optind != argc)
usage ();
- change_cygdrive_prefix (argv[optind], flags);
+ change_cygdrive_prefix (argv[optind], flags | default_flag);
break;
case saw_show_cygdrive_prefix:
if (optind <= argc)
@@ -436,7 +436,7 @@ mount_already_exists (const char *posix_path, int flags)
static void
change_cygdrive_prefix (const char *new_prefix, int flags)
{
- flags |= MOUNT_AUTO;
+ flags |= MOUNT_CYGDRIVE;
if (mount (NULL, new_prefix, flags))
error (new_prefix);