From b3d914edcb506bb25c3798683cda341b8acbb0ad 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 --- 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