When launching a sandbox, don't assume the binary is a fully qualified path, let the kernel search $PATH for it. This is required by many docker images as their init program has no qualified path.
Signed-off-by: Daniel P. Berrange <berra...@redhat.com> --- libvirt-sandbox/libvirt-sandbox-init-common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libvirt-sandbox/libvirt-sandbox-init-common.c b/libvirt-sandbox/libvirt-sandbox-init-common.c index af7e457..7ea63cf 100644 --- a/libvirt-sandbox/libvirt-sandbox-init-common.c +++ b/libvirt-sandbox/libvirt-sandbox-init-common.c @@ -516,7 +516,7 @@ static gboolean run_command(GVirSandboxConfig *config, abort(); } - execv(appargv[0], appargv); + execvp(appargv[0], appargv); fprintf(stderr, "Cannot execute '%s': %s\n", appargv[0], strerror(errno)); exit(EXIT_FAILURE); } -- 2.7.4 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list