Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2002-07-02 00:54:35 +0400
committerChristopher Faylor <me@cgf.cx>2002-07-02 00:54:35 +0400
commit1050e57c9afee171480510d3277877aca29c0f96 (patch)
treef64bdfb6d827be836d1866ae864250e08763623c /winsup/utils/mount.cc
parent1bc9effd28c85148d788043f3d99c657e9dda3d4 (diff)
* 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.
Diffstat (limited to 'winsup/utils/mount.cc')
-rw-r--r--winsup/utils/mount.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/utils/mount.cc b/winsup/utils/mount.cc
index cd3131028..0e910853a 100644
--- a/winsup/utils/mount.cc
+++ b/winsup/utils/mount.cc
@@ -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
{