1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-15 05:57:49 +03:00

s3:eventlogadm: Use cmdline_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>
(cherry picked from commit 095123df945270bc51635a19125a7abdfcd4ab80)
This commit is contained in:
Christof Schmitt 2018-08-20 16:21:51 -07:00 committed by Karolin Seeger
parent 0442b1f938
commit e39945075e
2 changed files with 5 additions and 0 deletions

View 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)) {

View File

@ -89,6 +89,7 @@ bld.SAMBA3_BINARY('eventlogadm',
deps='''
talloc
smbconf
cmdline_contexts
LIBEVENTLOG''',
install_path='${SBINDIR}')