From c8a124ac1b03d83016bda02cad5a369ce6fb1cd7 Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Tue, 24 Apr 2012 11:32:04 +0200 Subject: execv, excvp and exec_child never return EOK * So don't need to handle that case --- src/providers/ldap/sdap_child_helpers.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'src/providers/ldap') diff --git a/src/providers/ldap/sdap_child_helpers.c b/src/providers/ldap/sdap_child_helpers.c index 704c89ec3..eeb5e5f03 100644 --- a/src/providers/ldap/sdap_child_helpers.c +++ b/src/providers/ldap/sdap_child_helpers.c @@ -107,11 +107,9 @@ static errno_t sdap_fork_child(struct tevent_context *ev, err = exec_child(child, pipefd_to_child, pipefd_from_child, LDAP_CHILD, ldap_child_debug_fd); - if (err != EOK) { - DEBUG(1, ("Could not exec LDAP child: [%d][%s].\n", - err, strerror(err))); - return err; - } + DEBUG(SSSDBG_CRIT_FAILURE, ("Could not exec LDAP child: [%d][%s].\n", + err, strerror(err))); + return err; } else if (pid > 0) { /* parent */ child->pid = pid; child->read_from_child_fd = pipefd_from_child[0]; -- cgit