From: Benoît Ganne Date: Thu, 10 Apr 2025 14:19:25 +0000 (+0200) Subject: vlib: fix restart cli command X-Git-Tag: v25.10-rc0~100 X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F82%2F42782%2F2;p=vpp.git vlib: fix restart cli command Type: fix Change-Id: I961a261a647863936021e4b29d406971fd76c0af Signed-off-by: Benoît Ganne --- diff --git a/src/vlib/cli.c b/src/vlib/cli.c index 4198b4b0976..d6a96293869 100644 --- a/src/vlib/cli.c +++ b/src/vlib/cli.c @@ -1239,7 +1239,8 @@ restart_cmd_fn (vlib_main_t * vm, unformat_input_t * input, } /* Exec ourself */ - execve (vgm->name, (char **) vgm->argv, environ); + if (execve ((void *) vgm->argv[0], (char **) vgm->argv, environ)) + return clib_error_return_unix (0, "execve failed"); return 0; }