]> xenbits.xensource.com Git - libvirt.git/commit
Ensure binary is resolved wrt $PATH in virExec
authorDaniel P. Berrange <berrange@redhat.com>
Tue, 15 Mar 2011 16:58:28 +0000 (16:58 +0000)
committerDaniel P. Berrange <berrange@redhat.com>
Fri, 18 Mar 2011 16:40:01 +0000 (16:40 +0000)
commite0d014f2379ddde175c0c3126273911221c3e645
tree0ee310a895f5911746cdc9be990cd8699bfd5eea
parent2b84e445d598894c711278afacfbb9247333bdd8
Ensure binary is resolved wrt $PATH in virExec

virExec would only resolved the binary to $PATH if no env
variables were being set. Since there is no execvep() API
in POSIX, we use virFindFileInPath to manually resolve
the binary and then use execv() instead of execvp().
src/util/util.c