s3:eventlogadm: Use cmdline_messaging_context
authorChristof Schmitt <cs@samba.org>
Mon, 20 Aug 2018 23:21:51 +0000 (16:21 -0700)
committerAndreas Schneider <asn@cryptomilk.org>
Fri, 7 Sep 2018 15:26:16 +0000 (17:26 +0200)
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/utils/eventlogadm.c
source3/utils/wscript_build

index 5ef091a9ae30476c256ddc18d57e7a65cbc7aba1..db874dfae8a70d54006b0ac0bb0f235e0e71e71c 100644 (file)
@@ -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)) {
index 92404a61c2db612c0c2583f45ba236001f508546..eabebcf3d52edef8a9e196a248500083b02e3d0c 100644 (file)
@@ -89,6 +89,7 @@ bld.SAMBA3_BINARY('eventlogadm',
                  deps='''
                  talloc
                  smbconf
+                 cmdline_contexts
                  LIBEVENTLOG''',
                  install_path='${SBINDIR}')