mount.exe's error message
Tue Aug 28 11:48:00 GMT 2001
On Tue, Aug 28, 2001 at 06:05:36PM +0200, Gerrit P. Haase wrote:
>I think this error message is not 'correct'.
>$ mount -s -b
>mount: too many arguments
You're right. It's not correct. Your change would only make the
error message correct when there weren't enough arguments, though.
Too many arguments is also a possible error condition.
I checked in a fix which deals with both scenarios.
Thanks for noticing this.
>diff -ur src/winsup/utils/mount.cc src-patched/winsup/utils/mount.cc
>--- src/winsup/utils/mount.cc Tue Aug 28 14:19:39 2001
>+++ src-patched/winsup/utils/mount.cc Tue Aug 28 15:53:50 2001
>@@ -214,7 +214,7 @@
> if (optind != (argc - 1))
>- fprintf (stderr, "%s: too many arguments\n", progname);
>+ fprintf (stderr, "%s: too few arguments\n", progname);
> usage ();
> if (force || !mount_already_exists (argv[optind + 1], flags))
email@example.com Red Hat, Inc.
More information about the Cygwin-patches