From 82fbb3cef309f17a88e44fe9c379d84f9835f39b Mon Sep 17 00:00:00 2001 From: Wenchao Hao Date: Tue, 9 Aug 2022 21:52:18 +0800 Subject: [PATCH] isnsadm: Fix unparse command line options "-V" and "-r" Following error would reported: root@fedora:# isnsadm -V isnsadm: invalid option -- 'V' Error: Unknown option root@fedora:# isnsadm -r isnsadm: invalid option -- 'r' Error: Unknown option This is because we did not add "V" and "r" to parameter when calling getopt_long() Signed-off-by: Wenchao Hao --- isnsadm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/isnsadm.c b/isnsadm.c index 94c705e..0710877 100644 --- a/isnsadm.c +++ b/isnsadm.c @@ -97,7 +97,7 @@ main(int argc, char **argv) isns_security_t *security = NULL; int c, status; - while ((c = getopt_long(argc, argv, "46Cc:d:hK:k:ls:", options, NULL)) != -1) { + while ((c = getopt_long(argc, argv, "46Cc:d:hK:k:ls:Vr", options, NULL)) != -1) { switch (c) { case '4': opt_af = AF_INET; -- 2.35.3