* mount.cc (mount_commands): Don't write /cygdrive/u mount points.
This commit is contained in:
parent
bee722a5e7
commit
f90e39b55e
|
@ -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>
|
2001-09-03 Michael A Chase <mchase@ix.netcom.com>
|
||||||
|
|
||||||
* mount.cc (longopts): Add mount-commands to options list.
|
* mount.cc (longopts): Add mount-commands to options list.
|
||||||
|
@ -82,7 +86,7 @@ Mon Apr 16 15:08:00 2001 Corinna Vinschen <vinschen@redhat.com>
|
||||||
`print_users'.
|
`print_users'.
|
||||||
|
|
||||||
2001-04-15 Michael A Chase <mchase@ix.netcom.com>
|
2001-04-15 Michael A Chase <mchase@ix.netcom.com>
|
||||||
|
|
||||||
* mount.cc (longopts): Add help to options list.
|
* mount.cc (longopts): Add help to options list.
|
||||||
(opts): Add 'h' to options string.
|
(opts): Add 'h' to options string.
|
||||||
* umount.cc (longopts): Add help to options list.
|
* umount.cc (longopts): Add help to options list.
|
||||||
|
|
|
@ -265,20 +265,23 @@ mount_commands (void)
|
||||||
|
|
||||||
// write mount commands for user and system mount points
|
// write mount commands for user and system mount points
|
||||||
while ((p = getmntent (m)) != NULL) {
|
while ((p = getmntent (m)) != NULL) {
|
||||||
strcpy(opts, " -f");
|
// Only list non-cygdrives
|
||||||
if (p->mnt_type[0] == 'u')
|
if (!strstr (p->mnt_opts, ",noumount")) {
|
||||||
strcat (opts, " -u");
|
strcpy(opts, " -f");
|
||||||
else if (p->mnt_type[0] == 's')
|
if (p->mnt_type[0] == 'u')
|
||||||
strcat (opts, " -s");
|
strcat (opts, " -u");
|
||||||
if (p->mnt_opts[0] == 'b')
|
else if (p->mnt_type[0] == 's')
|
||||||
strcat (opts, " -b");
|
strcat (opts, " -s");
|
||||||
else if (p->mnt_opts[0] == 't')
|
if (p->mnt_opts[0] == 'b')
|
||||||
strcat (opts, " -t");
|
strcat (opts, " -b");
|
||||||
if (strstr (p->mnt_opts, ",exec"))
|
else if (p->mnt_opts[0] == 't')
|
||||||
strcat (opts, " -x");
|
strcat (opts, " -t");
|
||||||
while ((c = strchr (p->mnt_fsname, '\\')) != NULL)
|
if (strstr (p->mnt_opts, ",exec"))
|
||||||
*c = '/';
|
strcat (opts, " -x");
|
||||||
printf (format_mnt, opts, p->mnt_fsname, p->mnt_dir);
|
while ((c = strchr (p->mnt_fsname, '\\')) != NULL)
|
||||||
|
*c = '/';
|
||||||
|
printf (format_mnt, opts, p->mnt_fsname, p->mnt_dir);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
endmntent (m);
|
endmntent (m);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue