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
path: root/winsup
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
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')
-rw-r--r--winsup/utils/ChangeLog8
-rw-r--r--winsup/utils/mount.cc4
-rw-r--r--winsup/utils/umount.cc4
3 files changed, 12 insertions, 4 deletions
diff --git a/winsup/utils/ChangeLog b/winsup/utils/ChangeLog
index f2414107f..dce5dbd92 100644
--- a/winsup/utils/ChangeLog
+++ b/winsup/utils/ChangeLog
@@ -1,3 +1,11 @@
+2002-06-09 Christopher Faylor <cgf@redhat.com>
+
+ * 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.
+
2002-06-08 Christopher Faylor <cgf@redhat.com>
* mount.cc (opts): Remove '-i' option.
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);
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);