aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--winsup/utils/ChangeLog5
-rw-r--r--winsup/utils/path.cc6
2 files changed, 8 insertions, 3 deletions
diff --git a/winsup/utils/ChangeLog b/winsup/utils/ChangeLog
index dce5dbd..a98a84e 100644
--- a/winsup/utils/ChangeLog
+++ b/winsup/utils/ChangeLog
@@ -1,5 +1,10 @@
2002-06-09 Christopher Faylor <cgf@redhat.com>
+ * path.cc (cygpath): Change MOUNT_AUTO to MOUNT_CYGDRIVE.
+ (getmntent): Ditto.
+
+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.
diff --git a/winsup/utils/path.cc b/winsup/utils/path.cc
index d7d9670..c72cefc 100644
--- a/winsup/utils/path.cc
+++ b/winsup/utils/path.cc
@@ -283,7 +283,7 @@ cygpath (const char *s, ...)
for (m = mount_table; m->posix ; m++)
{
- if (m->flags & MOUNT_AUTO)
+ if (m->flags & MOUNT_CYGDRIVE)
continue;
int n = strlen (m->posix);
@@ -341,8 +341,8 @@ getmntent (FILE *)
strcat (mnt.mnt_opts, (char *) ",cygexec");
else if (m->flags & MOUNT_EXEC)
strcat (mnt.mnt_opts, (char *) ",exec");
- if ((m->flags & MOUNT_AUTO)) /* cygdrive */
- strcat (mnt.mnt_opts, (char *) ",noumount");
+ if ((m->flags & MOUNT_CYGDRIVE)) /* cygdrive */
+ strcat (mnt.mnt_opts, (char *) ",cygdrive");
mnt.mnt_freq = 1;
mnt.mnt_passno = 1;
m++;