[Pkg-libvirt-commits] [libvirt-sandbox] 12/42: init: search $PATH for user specified binary
Guido Guenther
agx at moszumanska.debian.org
Sat May 27 16:27:07 UTC 2017
This is an automated email from the git hooks/post-receive script.
agx pushed a commit to branch debian/experimental
in repository libvirt-sandbox.
commit 51d97d1f4225d2daae5e31286818cb80a8de4bff
Author: Daniel P. Berrange <berrange at redhat.com>
Date: Fri Jul 15 12:49:40 2016 +0100
init: search $PATH for user specified binary
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 <berrange at 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);
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-libvirt/libvirt-sandbox.git
More information about the Pkg-libvirt-commits
mailing list