[master] 78fd62b And fix "param.show $param_name" which I just broke.

Poul-Henning Kamp phk at varnish-cache.org
Tue Nov 12 11:45:13 CET 2013


commit 78fd62b70911be5a21511633053562b58d98c4d9
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Tue Nov 12 10:45:01 2013 +0000

    And fix "param.show $param_name" which I just broke.

diff --git a/bin/varnishd/mgt/mgt_param.c b/bin/varnishd/mgt/mgt_param.c
index 7fd361f..dcab5a2 100644
--- a/bin/varnishd/mgt/mgt_param.c
+++ b/bin/varnishd/mgt/mgt_param.c
@@ -216,7 +216,9 @@ mcf_param_show(struct cli *cli, const char * const *av, void *priv)
 		lfmt = 1;
 	for (i = 0; i < nparspec; i++) {
 		pp = parspecs[i];
-		if (av[2] != NULL && !lfmt && strcmp(pp->name, av[2]))
+		if (av[2] != NULL &&
+		    strcmp(pp->name, av[2]) &&
+		    strcmp("-l", av[2]))
 			continue;
 		if (lfmt) {
 			VCLI_Out(cli, "%s\n", pp->name);



More information about the varnish-commit mailing list