summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
authorRalph Boehme <slow@samba.org>2019-05-04 12:12:48 +0200
committerJeremy Allison <jra@samba.org>2019-10-24 09:33:47 +0000
commit9471508391fd3bcf199b1e94f8d9ee2b956e8f8e (patch)
tree6f92aafd160f8cc07b5f11c6805e7cd7f44456bf /source3/lib
parentca95d7f41b683b4d7ac59ed6ee709d44abfe2019 (diff)
downloadsamba-9471508391fd3bcf199b1e94f8d9ee2b956e8f8e.tar.gz
s3: remove now unneeded call to cmdline_messaging_context()
This was only needed as dbwrap_open() had a bug where it asked for the ctdb connection before initializing messaging. The previous commit fixed that so we can now safely remove the calls to cmdline_messaging_context() from all tools that don't use messaging. Bug: https://bugzilla.samba.org/show_bug.cgi?id=13925 Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Thu Oct 24 09:33:47 UTC 2019 on sn-devel-184
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/popt_common_cmdline.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/source3/lib/popt_common_cmdline.c b/source3/lib/popt_common_cmdline.c
index 79e34847f48..39a787510a3 100644
--- a/source3/lib/popt_common_cmdline.c
+++ b/source3/lib/popt_common_cmdline.c
@@ -102,15 +102,8 @@ static void popt_common_credentials_callback(poptContext con,
}
if (reason == POPT_CALLBACK_REASON_POST) {
- struct messaging_context *msg_ctx = NULL;
bool ok;
- msg_ctx = cmdline_messaging_context(get_dyn_CONFIGFILE());
- if (msg_ctx == NULL) {
- fprintf(stderr, "Unable to initialize "
- "messaging context\n");
- }
-
ok = lp_load_client(get_dyn_CONFIGFILE());
if (!ok) {
const char *pname = poptGetInvocationName(con);