]> git.ipfire.org Git - thirdparty/samba.git/commit
lib: popen: Prepare to remove sys_popen().
authorJeremy Allison <jra@samba.org>
Fri, 17 May 2019 04:45:21 +0000 (21:45 -0700)
committerKarolin Seeger <kseeger@samba.org>
Thu, 13 Jun 2019 10:22:04 +0000 (10:22 +0000)
commit1ea4976a0a96aefbb3cd0150f03710c07f1338b1
tree0e541ac7cec8e78c1d79c9e5acf5428869f9ae58
parentecd28164948f1b217cb2135b548738752a97153e
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>
(cherry picked from commit f20538de041eed1cadbabe2149b2b7cfcb779cb5)
lib/util/sys_popen.c
lib/util/sys_popen.h