[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] execute command by execvp() so can search command in PATH.



# HG changeset patch
# User Stefano Stabellini <sstabellini@xxxxxxxxxxxxx>
# Date 1279538545 -3600
# Node ID 547679c48c47614b2dfb84b49189b334d788b020
# Parent  092da4a970aca76920232fa52cb3bd9b7c160956
execute command by execvp() so can search command in PATH.

Signed-off-by: Yu Zhiguo <yuzg@xxxxxxxxxxxxxx>
---
 tools/libxl/libxl_exec.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff -r 092da4a970ac -r 547679c48c47 tools/libxl/libxl_exec.c
--- a/tools/libxl/libxl_exec.c  Mon Jul 19 12:22:04 2010 +0100
+++ b/tools/libxl/libxl_exec.c  Mon Jul 19 12:22:25 2010 +0100
@@ -53,7 +53,7 @@ void libxl_exec(int stdinfd, int stdoutf
     /* in case our caller set it to IGN.  subprocesses are entitled
      * to assume they got DFL. */
 
-    execv(arg0, args);
+    execvp(arg0, args);
     _exit(-1);
 }
 

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.