From 781c4aabb87e63df77c76a360b6ed5f6a20e6d58 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Sat, 13 Nov 2010 20:28:41 -0800 Subject: Move error reporting of messaging context creation fail into the daemons themselves. Allows client utilities to silently fail to create a messaging context due to access denied on the messaging tdb (which I need for the following patch). Jeremy. --- source3/winbindd/winbindd.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'source3/winbindd/winbindd.c') diff --git a/source3/winbindd/winbindd.c b/source3/winbindd/winbindd.c index c831c94221..43cbd50d15 100644 --- a/source3/winbindd/winbindd.c +++ b/source3/winbindd/winbindd.c @@ -44,6 +44,16 @@ static bool interactive = False; extern bool override_logfile; +struct messaging_context *winbind_messaging_context(void) +{ + struct messaging_context *msg_ctx = server_messaging_context(); + if (likely(msg_ctx != NULL)) { + return msg_ctx; + } + smb_panic("Could not init winbindd's messaging context.\n"); + return NULL; +} + /* Reload configuration */ static bool reload_services_file(const char *lfile) -- cgit