On 11/18/24 3:19 PM, Scott Mayhew wrote:
The help text in version_usage() has examples with a 'v' character in
the version string, but the format string in the sscanf() call in
version_func() doesn't contain a 'v' character.
Signed-off-by: Scott Mayhew <smayhew@xxxxxxxxxx>
Committed... (tag: nfs-utils-2-8-2-rc2)
steved.
---
utils/nfsdctl/nfsdctl.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/utils/nfsdctl/nfsdctl.c b/utils/nfsdctl/nfsdctl.c
index f7c27632..ef917ff0 100644
--- a/utils/nfsdctl/nfsdctl.c
+++ b/utils/nfsdctl/nfsdctl.c
@@ -764,9 +764,9 @@ static void version_usage(void)
printf(" Display currently enabled and disabled versions:\n");
printf(" version\n");
printf(" Disable NFSv4.0:\n");
- printf(" version -v4.0\n");
+ printf(" version -4.0\n");
printf(" Enable v4.1, v4.2, disable v2, v3 and v4.0:\n");
- printf(" version -2 -3 -v4.0 +4.1 +v4.2\n");
+ printf(" version -2 -3 -4.0 +4.1 +4.2\n");
}
static int version_func(struct nl_sock *sock, int argc, char ** argv)