git: 15881823b9da - main - rpc.tlsclntd, rpc.tlsservd: Fix getopt_long argument
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 05 May 2022 23:23:39 UTC
The branch main has been updated by rmacklem:
URL: https://cgit.FreeBSD.org/src/commit/?id=15881823b9dabbd9f561c4fa264fffc4f497b10c
commit 15881823b9dabbd9f561c4fa264fffc4f497b10c
Author: Rick Macklem <rmacklem@FreeBSD.org>
AuthorDate: 2022-05-05 23:22:12 +0000
Commit: Rick Macklem <rmacklem@FreeBSD.org>
CommitDate: 2022-05-05 23:22:12 +0000
rpc.tlsclntd, rpc.tlsservd: Fix getopt_long argument
The "C" option in the argument to getopt_long() was
missing a ":" for both rpc.tlsclntd.c and rpc.tlsservd.c.
This patch fixes this.
MFC after: 2 weeks
---
usr.sbin/rpc.tlsclntd/rpc.tlsclntd.c | 4 ++--
usr.sbin/rpc.tlsservd/rpc.tlsservd.c | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/usr.sbin/rpc.tlsclntd/rpc.tlsclntd.c b/usr.sbin/rpc.tlsclntd/rpc.tlsclntd.c
index 5e66f4b4b2dd..ac8a91589388 100644
--- a/usr.sbin/rpc.tlsclntd/rpc.tlsclntd.c
+++ b/usr.sbin/rpc.tlsclntd/rpc.tlsclntd.c
@@ -154,8 +154,8 @@ main(int argc, char **argv)
rpctls_ssl_usec = tm.tv_usec;
rpctls_verbose = false;
- while ((ch = getopt_long(argc, argv, "CD:dl:mp:r:v", longopts, NULL)) !=
- -1) {
+ while ((ch = getopt_long(argc, argv, "C:D:dl:mp:r:v", longopts,
+ NULL)) != -1) {
switch (ch) {
case 'C':
rpctls_ciphers = optarg;
diff --git a/usr.sbin/rpc.tlsservd/rpc.tlsservd.c b/usr.sbin/rpc.tlsservd/rpc.tlsservd.c
index 2726ba84fd3b..e6cfbe6faf88 100644
--- a/usr.sbin/rpc.tlsservd/rpc.tlsservd.c
+++ b/usr.sbin/rpc.tlsservd/rpc.tlsservd.c
@@ -180,7 +180,7 @@ main(int argc, char **argv)
}
rpctls_verbose = false;
- while ((ch = getopt_long(argc, argv, "CD:dhl:n:mp:r:uvWw", longopts,
+ while ((ch = getopt_long(argc, argv, "C:D:dhl:n:mp:r:uvWw", longopts,
NULL)) != -1) {
switch (ch) {
case 'C':