summaryrefslogtreecommitdiff
path: root/source3/winbindd/winbindd_cm.c
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2011-04-29 12:53:13 +0200
committerVolker Lendecke <vl@samba.org>2011-04-29 16:57:37 +0200
commitaa5abcaf7e2844e3bd3d8e8fe26488673ad3c00e (patch)
tree7e2d9a8220b9677bf4a6a0f6b6324dc8524f8c05 /source3/winbindd/winbindd_cm.c
parent0757688eb34ec1a22bf8c28f72416d6684756647 (diff)
downloadsamba-aa5abcaf7e2844e3bd3d8e8fe26488673ad3c00e.tar.gz
samba-aa5abcaf7e2844e3bd3d8e8fe26488673ad3c00e.tar.bz2
samba-aa5abcaf7e2844e3bd3d8e8fe26488673ad3c00e.zip
s3: Make winbindd_reinit_after_fork return NTSTATUS
Diffstat (limited to 'source3/winbindd/winbindd_cm.c')
-rw-r--r--source3/winbindd/winbindd_cm.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/source3/winbindd/winbindd_cm.c b/source3/winbindd/winbindd_cm.c
index f065d83995..d9fca5f5dc 100644
--- a/source3/winbindd/winbindd_cm.c
+++ b/source3/winbindd/winbindd_cm.c
@@ -189,6 +189,7 @@ static bool fork_child_dc_connect(struct winbindd_domain *domain)
TALLOC_CTX *mem_ctx = NULL;
pid_t parent_pid = sys_getpid();
char *lfile = NULL;
+ NTSTATUS status;
if (domain->dc_probe_pid != (pid_t)-1) {
/*
@@ -233,7 +234,10 @@ static bool fork_child_dc_connect(struct winbindd_domain *domain)
}
}
- if (!winbindd_reinit_after_fork(NULL, lfile)) {
+ status = winbindd_reinit_after_fork(NULL, lfile);
+ if (!NT_STATUS_IS_OK(status)) {
+ DEBUG(1, ("winbindd_reinit_after_fork failed: %s\n",
+ nt_errstr(status)));
messaging_send_buf(winbind_messaging_context(),
pid_to_procid(parent_pid),
MSG_WINBIND_FAILED_TO_GO_ONLINE,