![]() |
lvs-devel
|
| To: | LVS Devel <lvs-devel@xxxxxxxxxxxxxxx> |
|---|---|
| Subject: | [PATCH ipvsadm v2 2/5] ipvsadm: fix ambiguous usage error message |
| From: | Jeremy Sowden <azazel@xxxxxxxxxx> |
| Date: | Mon, 13 Jan 2025 19:24:47 +0000 |
If `-6` is used without `-f`, the usage error message is "-6 used before -f", which can be misconstrued as warning that both options were used but in the wrong order. Reword it. Link: http://bugs.debian.org/610596 Signed-off-by: Jeremy Sowden <azazel@xxxxxxxxxx> --- ipvsadm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ipvsadm.c b/ipvsadm.c index 42f31a20e596..10bf84c85fbe 100644 --- a/ipvsadm.c +++ b/ipvsadm.c @@ -833,7 +833,7 @@ parse_options(int argc, char **argv, struct ipvs_command_entry *ce, ce->svc.af = AF_INET6; ce->svc.netmask = 128; } else { - fail(2, "-6 used before -f\n"); + fail(2, "-6 must follow -f\n"); } break; case 'o': -- 2.45.2 |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | [PATCH ipvsadm v2 4/5] Support environmental and command-line `*FLAGS` variable in Makefiles, Jeremy Sowden |
|---|---|
| Next by Date: | Re: [PATCH ipvsadm v2 0/5] Debian package fixes, Julian Anastasov |
| Previous by Thread: | [PATCH ipvsadm v2 4/5] Support environmental and command-line `*FLAGS` variable in Makefiles, Jeremy Sowden |
| Next by Thread: | Re: [PATCH ipvsadm v2 0/5] Debian package fixes, Julian Anastasov |
| Indexes: | [Date] [Thread] [Top] [All Lists] |