* mount.cc (main): Ensure that mount_already_exists() also gets default flag

that is passed to do_mount.
* cygpath.cc (long_options): Add "dos" and "mixed", correct "close", "file" and
"type" to use NULL flag.
(usage): Clean up usage output (more), accomodate new options.
(main): Add --dos and --mixed options; accomodate all output forms in --type.
Make UNIXy output default.
This commit is contained in:
Christopher Faylor
2002-07-01 20:54:35 +00:00
parent 1bc9effd28
commit 1050e57c9a
3 changed files with 117 additions and 61 deletions

View File

@@ -296,7 +296,7 @@ main (int argc, char **argv)
fprintf (stderr, "%s: too many arguments\n", progname);
usage ();
}
if (force || !mount_already_exists (argv[optind + 1], flags))
if (force || !mount_already_exists (argv[optind + 1], flags | default_flag))
do_mount (argv[optind], argv[optind + 1], flags | default_flag);
else
{