* path.cc (cygpath): Change MOUNT_AUTO to MOUNT_CYGDRIVE.

(getmntent): Ditto.
This commit is contained in:
Christopher Faylor 2002-06-09 05:08:44 +00:00
parent 3c1736432d
commit 548e0dad4b
2 changed files with 8 additions and 3 deletions

View File

@ -1,3 +1,8 @@
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> 2002-06-09 Christopher Faylor <cgf@redhat.com>
* mount.cc (main): Use default system/user flag for cygdrive stuff, * mount.cc (main): Use default system/user flag for cygdrive stuff,

View File

@ -283,7 +283,7 @@ cygpath (const char *s, ...)
for (m = mount_table; m->posix ; m++) for (m = mount_table; m->posix ; m++)
{ {
if (m->flags & MOUNT_AUTO) if (m->flags & MOUNT_CYGDRIVE)
continue; continue;
int n = strlen (m->posix); int n = strlen (m->posix);
@ -341,8 +341,8 @@ getmntent (FILE *)
strcat (mnt.mnt_opts, (char *) ",cygexec"); strcat (mnt.mnt_opts, (char *) ",cygexec");
else if (m->flags & MOUNT_EXEC) else if (m->flags & MOUNT_EXEC)
strcat (mnt.mnt_opts, (char *) ",exec"); strcat (mnt.mnt_opts, (char *) ",exec");
if ((m->flags & MOUNT_AUTO)) /* cygdrive */ if ((m->flags & MOUNT_CYGDRIVE)) /* cygdrive */
strcat (mnt.mnt_opts, (char *) ",noumount"); strcat (mnt.mnt_opts, (char *) ",cygdrive");
mnt.mnt_freq = 1; mnt.mnt_freq = 1;
mnt.mnt_passno = 1; mnt.mnt_passno = 1;
m++; m++;