Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2002-06-09 08:54:32 +0400
committerChristopher Faylor <me@cgf.cx>2002-06-09 08:54:32 +0400
commit94cc482c646f890f26c37f47d945c3c50f7fff87 (patch)
tree2def8707836a8ba69b614d037d4b30f3c9acfec5 /winsup/utils/umount.cc
parent7ac66bdda062e2211b01b7eb07f2b640c58271da (diff)
* mount.cc (main): Use default system/user flag for cygdrive stuff, too.
(change_cygdrive_prefix): Change MOUNT_AUTO to MOUNT_CYGDRIVE. * umount.cc (remove_cygdrive_prefix): Ditto. (main): Use default system/user flag for cygdrive stuff, too.
Diffstat (limited to 'winsup/utils/umount.cc')
-rw-r--r--winsup/utils/umount.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/winsup/utils/umount.cc b/winsup/utils/umount.cc
index cd508a5e1..afcee5ee7 100644
--- a/winsup/utils/umount.cc
+++ b/winsup/utils/umount.cc
@@ -160,7 +160,7 @@ main (int argc, char **argv)
case saw_remove_cygdrive_prefix:
if (optind != argc)
usage ();
- remove_cygdrive_prefix (flags);
+ remove_cygdrive_prefix (flags | default_flag);
break;
case saw_remove_all_system_mounts:
if (optind != argc)
@@ -244,7 +244,7 @@ remove_all_system_mounts ()
static void
remove_cygdrive_prefix (int flags)
{
- int res = cygwin_umount (NULL, flags | MOUNT_AUTO);
+ int res = cygwin_umount (NULL, flags | MOUNT_CYGDRIVE);
if (res)
error ("remove_cygdrive_prefix");
exit (0);