mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-07 09:00:28 +00:00
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.
(cherry picked from commit 15881823b9
)
This commit is contained in:
parent
146e1dbbf6
commit
79eb3b3d3f
|
@ -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;
|
||||
|
|
|
@ -181,7 +181,7 @@ main(int argc, char **argv)
|
|||
|
||||
debug = 0;
|
||||
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':
|
||||
|
|
Loading…
Reference in a new issue