aboutsummaryrefslogtreecommitdiffstats
path: root/src/vlib/cli.c
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2022-04-04 18:48:11 +0200
committerFlorin Coras <florin.coras@gmail.com>2022-04-04 19:12:10 +0000
commit2e90b299ac3f32bbf82785eda5e00a2e2d61f718 (patch)
treec3138a24a361fa85d413d30fb9bbd86a90799f69 /src/vlib/cli.c
parent0dde17573261d32e50d86ea584bc70f0796e0f46 (diff)
vlib: improve exec path search
Fixes VPP invocation with relative path, i.e.: $ bin/vpp unix interactive Type: improvement Change-Id: I0278710bb472b92e31389b2d28955c3d33550230 Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/vlib/cli.c')
-rw-r--r--src/vlib/cli.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vlib/cli.c b/src/vlib/cli.c
index 2187d2886fc..b7c4c0030b0 100644
--- a/src/vlib/cli.c
+++ b/src/vlib/cli.c
@@ -1097,7 +1097,7 @@ restart_cmd_fn (vlib_main_t * vm, unformat_input_t * input,
/* *INDENT-ON* */
/* Exec ourself */
- execve (vgm->name, (char **) vm->argv, environ);
+ execve (vgm->name, (char **) vgm->argv, environ);
return 0;
}