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

Tollef Fog Heen tfheen at varnish-cache.org
Mon Apr 22 13:27:01 CEST 2013


commit aab34502bce139233d91b7e19fb5aa9a7eb167a0
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/varnishd.c b/bin/varnishd/varnishd.c
index fbf5713..2f88409 100644
--- a/bin/varnishd/varnishd.c
+++ b/bin/varnishd/varnishd.c
@@ -480,6 +480,7 @@ main(int argc, char * const *argv)
 			AN(p);
 			*p++ = '\0';
 			MCF_ParamSet(cli, optarg, p);
+			*--p = '=';
 			cli_check(cli);
 			break;
 		case 's':



More information about the varnish-commit mailing list