From: Rui Xiang Date: Sat, 8 Jun 2013 10:04:47 +0000 (+0800) Subject: lxc-monitord: remove hard code execvp path of lxc-monitord X-Git-Tag: lxc-1.0.0.alpha1~1^2~161 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=31f58b3fcec322dba1eed71e364335c30500066c;p=thirdparty%2Flxc.git lxc-monitord: remove hard code execvp path of lxc-monitord Sometimes, the path of lxc tools is not '/usr/bin', but '/usr/local/bin' or other. Then execvp lxc-monitord will fail in lxc_monitord_spawn. Signed-off-by: Rui Xiang Signed-off-by: Serge Hallyn --- diff --git a/src/lxc/monitor.c b/src/lxc/monitor.c index c04bb73d3..0717344e5 100644 --- a/src/lxc/monitor.c +++ b/src/lxc/monitor.c @@ -210,7 +210,7 @@ int lxc_monitord_spawn(const char *lxcpath) char pipefd_str[11]; char * const args[] = { - "/usr/bin/lxc-monitord", + "lxc-monitord", (char *)lxcpath, pipefd_str, NULL,