summaryrefslogtreecommitdiffstats
path: root/src/providers/ldap/sdap_child_helpers.c
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2015-01-07 10:36:12 +0100
committerJakub Hrozek <jhrozek@redhat.com>2015-01-13 17:45:19 +0100
commit16cb0969f0a9ea71524d852077d6a480740d4f12 (patch)
treee9783c109010476b0c795cd55e76de60f9b2268f /src/providers/ldap/sdap_child_helpers.c
parentbb7ddd2be9847bfb07395341c7623da1b104b8a6 (diff)
downloadsssd-16cb0969f0a9ea71524d852077d6a480740d4f12.tar.gz
sssd-16cb0969f0a9ea71524d852077d6a480740d4f12.tar.xz
sssd-16cb0969f0a9ea71524d852077d6a480740d4f12.zip
UTIL: Allow dup-ing child pipe to a different FD
Related to: https://fedorahosted.org/sssd/ticket/2544 Adds a new function exec_child_ex and moves setting the extra_argv[] to exec_child_ex() along with specifying the input and output fds. Reviewed-by: Sumit Bose <sbose@redhat.com>
Diffstat (limited to 'src/providers/ldap/sdap_child_helpers.c')
-rw-r--r--src/providers/ldap/sdap_child_helpers.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/providers/ldap/sdap_child_helpers.c b/src/providers/ldap/sdap_child_helpers.c
index b60891d2b..400109890 100644
--- a/src/providers/ldap/sdap_child_helpers.c
+++ b/src/providers/ldap/sdap_child_helpers.c
@@ -108,8 +108,7 @@ static errno_t sdap_fork_child(struct tevent_context *ev,
if (pid == 0) { /* child */
err = exec_child(child,
pipefd_to_child, pipefd_from_child,
- LDAP_CHILD, ldap_child_debug_fd,
- NULL);
+ LDAP_CHILD, ldap_child_debug_fd);
DEBUG(SSSDBG_CRIT_FAILURE, "Could not exec LDAP child: [%d][%s].\n",
err, strerror(err));
return err;