]> git.ipfire.org Git - thirdparty/samba.git/commit
s3:util: Move popen wrappers to lib/util
authorAliaksei Karaliou <akaraliou@panasas.com>
Thu, 27 Dec 2018 09:18:28 +0000 (04:18 -0500)
committerKarolin Seeger <kseeger@samba.org>
Thu, 13 Jun 2019 08:52:29 +0000 (08:52 +0000)
commitd1cb288bda23a3bad943a66fe626c4fb3d45c91f
treec498296f6c10e81911cbaf39322a1f2c6b16abf5
parentebe505e7cf72587640ef69bc04a0710f26bb90b9
s3:util: Move popen wrappers to lib/util

When linked into Samba3 libraries, sys_popen()/sys_pclose()
cannot be used in lower level libraries because of circular
dependencies.

This patch moves them into common samba-util library.

Extra fix needed to enable easy back-port of code for:

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

Signed-off-by: Aliaksei Karaliou <akaraliou@panasas.com>
Reviewed-by: Garming Sam <garming@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
(cherry picked from commit 65ea3f2a461c0eeca7d14c4258eea52e19f0ed06)
lib/util/sys_popen.c [moved from source3/lib/sys_popen.c with 99% similarity]
lib/util/sys_popen.h [moved from source3/lib/sys_popen.h with 100% similarity]
lib/util/wscript_build
source3/lib/util_file.c
source3/wscript_build