[master] 59f10690b Use the -b argument passed to the function.

Poul-Henning Kamp phk at FreeBSD.org
Tue Feb 1 10:29:04 UTC 2022


commit 59f10690b1c293bbd2e984f5ee09e7d187c10044
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Tue Feb 1 10:22:18 2022 +0000

    Use the -b argument passed to the function.

diff --git a/bin/varnishd/mgt/mgt_main.c b/bin/varnishd/mgt/mgt_main.c
index 3615d142e..0df2806c0 100644
--- a/bin/varnishd/mgt/mgt_main.c
+++ b/bin/varnishd/mgt/mgt_main.c
@@ -450,9 +450,9 @@ mgt_b_conv(const char *b_arg)
 	if (!strcasecmp(b_arg, "none"))
 		VSB_cat(vsb, "none;\n");
 	else if (*b_arg != '/')
-		VSB_printf(vsb, "{\n    .host = \"%s\";\n}\n", optarg);
+		VSB_printf(vsb, "{\n    .host = \"%s\";\n}\n", b_arg);
 	else
-		VSB_printf(vsb, "{\n    .path = \"%s\";\n}\n", optarg);
+		VSB_printf(vsb, "{\n    .path = \"%s\";\n}\n", b_arg);
 	AZ(VSB_finish(vsb));
 	fa->src = strdup(VSB_data(vsb));
 	AN(fa->src);


More information about the varnish-commit mailing list