* mount.cc (mount_commands): Don't write /cygdrive/u mount points.

This commit is contained in:
Christopher Faylor 2001-09-04 01:09:39 +00:00
parent bee722a5e7
commit f90e39b55e
2 changed files with 22 additions and 15 deletions

View File

@ -1,3 +1,7 @@
2001-09-03 Michael A Chase <mchase@ix.netcom.com>
* mount.cc (mount_commands): Don't write /cygdrive/u mount points.
2001-09-03 Michael A Chase <mchase@ix.netcom.com>
* mount.cc (longopts): Add mount-commands to options list.

View File

@ -265,6 +265,8 @@ mount_commands (void)
// write mount commands for user and system mount points
while ((p = getmntent (m)) != NULL) {
// Only list non-cygdrives
if (!strstr (p->mnt_opts, ",noumount")) {
strcpy(opts, " -f");
if (p->mnt_type[0] == 'u')
strcat (opts, " -u");
@ -280,6 +282,7 @@ mount_commands (void)
*c = '/';
printf (format_mnt, opts, p->mnt_fsname, p->mnt_dir);
}
}
endmntent (m);
// write mount commands for cygdrive prefixes