From 4903dc924fe79711e47840faecb58030c0ecc98d Mon Sep 17 00:00:00 2001 From: John Estabrook Date: Thu, 25 Mar 2021 16:53:33 -0500 Subject: configd: T3426: add support for script arguments to vyos-configd (cherry picked from commit b3d914edcb506bb25c3798683cda341b8acbb0ad) --- src/shim/vyshim.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/shim') diff --git a/src/shim/vyshim.c b/src/shim/vyshim.c index e6d1d5a78..cae8b6152 100644 --- a/src/shim/vyshim.c +++ b/src/shim/vyshim.c @@ -81,7 +81,7 @@ int main(int argc, char* argv[]) debug_print("Connecting to vyos-configd ...\n"); zmq_connect(requester, SOCKET_PATH); - for (int i = argc-1; i > 0 ; i--) { + for (int i = 1; i < argc ; i++) { strncat(&string_node_data[0], argv[i], 127); } -- cgit v1.2.3