diff options
author | John Estabrook <jestabro@vyos.io> | 2021-03-25 16:53:33 -0500 |
---|---|---|
committer | John Estabrook <jestabro@vyos.io> | 2021-05-14 10:03:40 -0500 |
commit | 4903dc924fe79711e47840faecb58030c0ecc98d (patch) | |
tree | 127cc66195d18d0203510196790be1407aa545ce /src/shim | |
parent | c44599db534a4dcc47f5f4f22fb60c67943101bd (diff) | |
download | vyos-1x-4903dc924fe79711e47840faecb58030c0ecc98d.tar.gz vyos-1x-4903dc924fe79711e47840faecb58030c0ecc98d.zip |
configd: T3426: add support for script arguments to vyos-configd
(cherry picked from commit b3d914edcb506bb25c3798683cda341b8acbb0ad)
Diffstat (limited to 'src/shim')
-rw-r--r-- | src/shim/vyshim.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); } |