s4/torture/gpo: Use existing code to 'run' external commands
authorNoel Power <noel.power@suse.com>
Tue, 6 Nov 2018 19:50:00 +0000 (19:50 +0000)
committerNoel Power <npower@samba.org>
Mon, 10 Dec 2018 09:38:22 +0000 (10:38 +0100)
commit1d6350897d2a2ac6f2f4024f92ce9266bc4edeff
treeebbf4b6bee6d19acc09afef399586ad30c04f917
parent0cd885c1ec71c4f9cbed96328cd82de27cdc091f
s4/torture/gpo: Use existing code to 'run' external commands

Noticed when the smb.conf defined 'gpo update command' contained
the $PYTHON version then the exec_wait function failed to run the
command. Seems there is some issue with the arg handling. Also
there is already existing code (samba_runcmd_send) that works fine
in similar situation (e.g. when running dnsupdate etc.) so replaced
the homebrewed exec_wait functionality with the samba_runcmd util
function.

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source4/torture/gpo/apply.c