[master] 801f3a6 Set the split character back to '=' after applying the runtime parameter to preserve the arguments as seen e.g. ps.

Martin Blix Grydeland martin at varnish-cache.org
Fri Dec 14 12:18:56 CET 2012


commit 801f3a62f00eea3f02023650d2f3ac144240d538
Author: Martin Blix Grydeland <martin at varnish-software.com>
Date:   Thu Dec 13 13:13:38 2012 +0100

    Set the split character back to '=' after applying the runtime
    parameter to preserve the arguments as seen e.g. ps.
    
    Fixes: #1238

diff --git a/bin/varnishd/mgt/mgt_main.c b/bin/varnishd/mgt/mgt_main.c
index fe6e489..2b3c709 100644
--- a/bin/varnishd/mgt/mgt_main.c
+++ b/bin/varnishd/mgt/mgt_main.c
@@ -465,6 +465,7 @@ main(int argc, char * const *argv)
 			AN(p);
 			*p++ = '\0';
 			MCF_ParamSet(cli, optarg, p);
+			*--p = '=';
 			cli_check(cli);
 			break;
 		case 'r':



More information about the varnish-commit mailing list