]> xenbits.xensource.com Git - libvirt.git/commit
util: share code between virExec and virCommandExec
authorCédric Bosdonnat <cbosdonnat@suse.com>
Wed, 31 May 2017 13:18:33 +0000 (15:18 +0200)
committerCédric Bosdonnat <cbosdonnat@suse.com>
Tue, 11 Jul 2017 08:41:24 +0000 (10:41 +0200)
commit0980764dee687e8da86dc410c351759867163389
tree1ab7bdf88fef89e6ea3eac9f265b05561752bd14
parent25630a37350336262d0ad10c2a401eacfe366f14
util: share code between virExec and virCommandExec

virCommand is a version of virExec that doesn't fork, however it is
just calling execve and doesn't honors setting uid/gid and pwd.

This commit extrac those pieces from virExec() to a virExecCommon()
function that is called from both virExec() and virCommandExec().
src/util/vircommand.c