]> xenbits.xensource.com Git - xen.git/commitdiff
execute command by execvp() so can search command in PATH.
authorStefano Stabellini <sstabellini@xensource.com>
Mon, 19 Jul 2010 11:22:25 +0000 (12:22 +0100)
committerStefano Stabellini <sstabellini@xensource.com>
Mon, 19 Jul 2010 11:22:25 +0000 (12:22 +0100)
Signed-off-by: Yu Zhiguo <yuzg@cn.fujitsu.com>
tools/libxl/libxl_exec.c

index ddded06829c82f6be99f8e277e8ba836033f03c2..86dacd388309f9c1765e091596b5a6016a65dd0a 100644 (file)
@@ -53,7 +53,7 @@ void libxl_exec(int stdinfd, int stdoutfd, int stderrfd, char *arg0, char **args
     /* in case our caller set it to IGN.  subprocesses are entitled
      * to assume they got DFL. */
 
-    execv(arg0, args);
+    execvp(arg0, args);
     _exit(-1);
 }