summaryrefslogtreecommitdiffstats
path: root/src/providers/ad/ad_gpo.c
diff options
context:
space:
mode:
authorSumit Bose <sbose@redhat.com>2016-01-14 13:33:53 +0100
committerJakub Hrozek <jhrozek@redhat.com>2016-01-19 17:42:07 +0100
commit9dcc7dbf04466cd8cd90aa0bb8acbebef9aca832 (patch)
tree5319a888ab655b440a2432548ed835e1e75210c2 /src/providers/ad/ad_gpo.c
parenta7d2b4f157194c14bc4a40c74f6416b82befa460 (diff)
downloadsssd-9dcc7dbf04466cd8cd90aa0bb8acbebef9aca832.tar.gz
sssd-9dcc7dbf04466cd8cd90aa0bb8acbebef9aca832.tar.xz
sssd-9dcc7dbf04466cd8cd90aa0bb8acbebef9aca832.zip
UTIL: allow to skip default options for child processes
Currently the SSSD default options like e.g. --debug-level are added unconditionally to the command line options of a child process when started with the child helper functions. If a binary from a different source should be started as a child by SSSD those options might not be known or used differently. This patch adds an option to exec_child_ex() which allows to skip the default options and only add specific options. Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>
Diffstat (limited to 'src/providers/ad/ad_gpo.c')
-rw-r--r--src/providers/ad/ad_gpo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/providers/ad/ad_gpo.c b/src/providers/ad/ad_gpo.c
index cca5e5861..069196c3b 100644
--- a/src/providers/ad/ad_gpo.c
+++ b/src/providers/ad/ad_gpo.c
@@ -4144,7 +4144,7 @@ gpo_fork_child(struct tevent_req *req)
if (pid == 0) { /* child */
err = exec_child_ex(state,
pipefd_to_child, pipefd_from_child,
- GPO_CHILD, gpo_child_debug_fd, NULL,
+ GPO_CHILD, gpo_child_debug_fd, NULL, false,
STDIN_FILENO, AD_GPO_CHILD_OUT_FILENO);
DEBUG(SSSDBG_CRIT_FAILURE, "Could not exec gpo_child: [%d][%s].\n",
err, strerror(err));