From: Christof Schmitt Date: Mon, 20 Aug 2018 23:21:51 +0000 (-0700) Subject: s3:eventlogadm: Use cmdline_messaging_context X-Git-Tag: tdb-1.3.17~1696 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=095123df945270bc51635a19125a7abdfcd4ab80;p=thirdparty%2Fsamba.git s3:eventlogadm: Use cmdline_messaging_context BUG: https://bugzilla.samba.org/show_bug.cgi?id=13465 Signed-off-by: Christof Schmitt Reviewed-by: Ralph Boehme --- diff --git a/source3/utils/eventlogadm.c b/source3/utils/eventlogadm.c index 5ef091a9ae3..db874dfae8a 100644 --- a/source3/utils/eventlogadm.c +++ b/source3/utils/eventlogadm.c @@ -30,6 +30,7 @@ #include "registry/reg_util_token.h" #include "registry/reg_backend_db.h" #include "../libcli/registry/util_reg.h" +#include "cmdline_contexts.h" extern int optind; extern char *optarg; @@ -472,6 +473,9 @@ int main( int argc, char *argv[] ) exit( 1 ); } + cmdline_messaging_context(configfile == NULL ? + get_dyn_CONFIGFILE() : configfile); + if ( configfile == NULL ) { lp_load_global(get_dyn_CONFIGFILE()); } else if (!lp_load_global(configfile)) { diff --git a/source3/utils/wscript_build b/source3/utils/wscript_build index 92404a61c2d..eabebcf3d52 100644 --- a/source3/utils/wscript_build +++ b/source3/utils/wscript_build @@ -89,6 +89,7 @@ bld.SAMBA3_BINARY('eventlogadm', deps=''' talloc smbconf + cmdline_contexts LIBEVENTLOG''', install_path='${SBINDIR}')