lib: popen: Prepare to remove sys_popen().
authorJeremy Allison <jra@samba.org>
Fri, 17 May 2019 04:45:21 +0000 (21:45 -0700)
committerJeremy Allison <jra@samba.org>
Fri, 24 May 2019 19:00:05 +0000 (19:00 +0000)
commitf20538de041eed1cadbabe2149b2b7cfcb779cb5
treec1944908125206dfcf35c8b342191c19f97a5ee7
parent77117a14b91b3111d0f7892b34d4919987438a41
lib: popen: Prepare to remove sys_popen().

Add sys_popenv(char * const argl[]) that uses a NULL
terminated vector array of args. Change sys_popen() to
split up its command string and call sys_popenv().

Once all callers are converted to sys_popenv() we
can remove sys_popen().

BUG: https://bugzilla.samba.org/show_bug.cgi?id=13964

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
lib/util/sys_popen.c
lib/util/sys_popen.h