]> git.ipfire.org Git - thirdparty/samba.git/commit
s3:lib: Introduce cmdline context wrapper
authorChristof Schmitt <cs@samba.org>
Mon, 20 Aug 2018 21:44:28 +0000 (14:44 -0700)
committerAndreas Schneider <asn@cryptomilk.org>
Fri, 7 Sep 2018 15:26:14 +0000 (17:26 +0200)
commit8c3b62e6231e62feafacf2a7ee4c9d41cd27a4a1
treeb3350bd98d32515f5ae6d2d1a43fa1ce4b766419
parentb7464fd89bc22b71c82bbaa424bcbfcf947db651
s3:lib: Introduce cmdline context wrapper

Command line tools need acccess to the same messaging context provided
by server_messaging_context, as common code for db_open uses that
context. We want to have additional checking for command line tools
without having that code part of the servers. Introduce a wrapper
library to use for command line tools with the additional checks, that
then acquires the server_messaging_context.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=13465

Signed-off-by: Christof Schmitt <cs@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/lib/cmdline_contexts.c [new file with mode: 0644]
source3/lib/cmdline_contexts.h [new file with mode: 0644]
source3/wscript_build