On 11/13/24 11:13 AM, Benjamin Coddington wrote:
The getopt setup for the host arg was not expecing a value, update it as
expected
Signed-off-by: Benjamin Coddington <bcodding@xxxxxxxxxx>
Committed... (tag: nfs-utils-2-8-2-rc2)
steved.
---
tests/nsm_client/nsm_client.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tests/nsm_client/nsm_client.c b/tests/nsm_client/nsm_client.c
index 8dc059179806..b757209c3769 100644
--- a/tests/nsm_client/nsm_client.c
+++ b/tests/nsm_client/nsm_client.c
@@ -72,7 +72,7 @@ static struct timeval retrans_interval =
static struct option longopts[] =
{
{ "help", 0, 0, 'h' },
- { "host", 0, 0, 'H' },
+ { "host", 1, 0, 'H' },
{ "name", 1, 0, 'n' },
{ "program", 1, 0, 'P' },
{ "version", 1, 0, 'v' },
@@ -136,7 +136,7 @@ main(int argc, char **argv)
my_name[0] = '\0';
host[0] = '\0';
- while ((arg = getopt_long(argc, argv, "hHn:P:v:", longopts,
+ while ((arg = getopt_long(argc, argv, "hH:n:P:v:", longopts,
NULL)) != EOF) {
switch (arg) {
case 'H':
base-commit: 38b46cb1f28737069d7887b5ccf7001ba4a4ff59
prerequisite-patch-id: 8e580f79b2ce8a4c0771e250fcc7c67f943b309b