Blame SOURCES/nfs-utils-1.3.0-mountd-usage-error.patch
|
|
851484 |
commit 6ec0d58fbff7c1a814a21cf8c7fe0ef5106a04c1
|
|
|
851484 |
Author: Steve Dickson <steved@redhat.com>
|
|
|
851484 |
Date: Wed Jan 20 14:16:08 2016 -0500
|
|
|
851484 |
|
|
|
851484 |
mountd: print an error message when no versions are specified
|
|
|
851484 |
|
|
|
851484 |
Signed-off-by: Steve Dickson <steved@redhat.com>
|
|
|
851484 |
|
|
|
851484 |
diff --git a/utils/mountd/mountd.c b/utils/mountd/mountd.c
|
|
|
851484 |
index 8aca181..b584afc 100644
|
|
|
851484 |
--- a/utils/mountd/mountd.c
|
|
|
851484 |
+++ b/utils/mountd/mountd.c
|
|
|
851484 |
@@ -794,9 +794,10 @@ main(int argc, char **argv)
|
|
|
851484 |
}
|
|
|
851484 |
|
|
|
851484 |
/* No more arguments allowed. */
|
|
|
851484 |
- if (optind != argc || !version_any())
|
|
|
851484 |
+ if (optind != argc || !version_any()) {
|
|
|
851484 |
+ fprintf(stderr, "%s: No protocol versions specified!\n", progname);
|
|
|
851484 |
usage(progname, 1);
|
|
|
851484 |
-
|
|
|
851484 |
+ }
|
|
|
851484 |
if (chdir(state_dir)) {
|
|
|
851484 |
fprintf(stderr, "%s: chdir(%s) failed: %s\n",
|
|
|
851484 |
progname, state_dir, strerror(errno));
|