Blame chm_http-port-shortopt.patch
|
|
a5b9e75 |
From 107ce67661c517d1c0b63c31ed1dbe34573de445 Mon Sep 17 00:00:00 2001
|
|
|
a5b9e75 |
From: "FeRD (Frank Dana)" <ferdnyc@gmail.com>
|
|
|
a5b9e75 |
Date: Thu, 11 Jul 2019 21:20:23 -0400
|
|
|
a5b9e75 |
Subject: [PATCH] Correct port short-opt to -p (not -n)
|
|
|
a5b9e75 |
|
|
|
a5b9e75 |
The getopt_long arguments specified the short option for `--port` as
|
|
|
a5b9e75 |
`-n`, which was not handled by the case statement, making both `-p`
|
|
|
a5b9e75 |
(invalid argument) and `-n` (ignored) unusable to set the port.
|
|
|
a5b9e75 |
---
|
|
|
a5b9e75 |
src/chm_http.c | 2 +-
|
|
|
a5b9e75 |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
a5b9e75 |
|
|
|
a5b9e75 |
diff --git a/src/chm_http.c b/src/chm_http.c
|
|
|
a5b9e75 |
index 237e85a..6ae00cc 100644
|
|
|
a5b9e75 |
--- a/src/chm_http.c
|
|
|
a5b9e75 |
+++ b/src/chm_http.c
|
|
|
a5b9e75 |
@@ -87,7 +87,7 @@ int main(int c, char **v)
|
|
|
a5b9e75 |
while (1)
|
|
|
a5b9e75 |
{
|
|
|
a5b9e75 |
int o;
|
|
|
a5b9e75 |
- o = getopt_long (c, v, "n:b:h", longopts, &optindex);
|
|
|
a5b9e75 |
+ o = getopt_long (c, v, "p:b:h", longopts, &optindex);
|
|
|
a5b9e75 |
if (o < 0)
|
|
|
a5b9e75 |
{
|
|
|
a5b9e75 |
break;
|
|
|
a5b9e75 |
--
|
|
|
a5b9e75 |
2.21.0
|
|
|
a5b9e75 |
|