mirror of
https://github.com/samba-team/samba.git
synced 2025-03-20 22:50:26 +03:00
s3:smbget: Use cmdline_messaging_context
Initialize the messaging context through cmdline_messaging_context to allow access to config in clustered Samba. 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 20ed13923ed3c55e1b293e5440028d29384e9d3a)
This commit is contained in:
parent
4d9a78ca3d
commit
79e60e59ea
@ -20,6 +20,7 @@
|
||||
#include "system/filesys.h"
|
||||
#include "popt_common_cmdline.h"
|
||||
#include "libsmbclient.h"
|
||||
#include "cmdline_contexts.h"
|
||||
|
||||
static int columns = 0;
|
||||
|
||||
@ -879,6 +880,8 @@ int main(int argc, char **argv)
|
||||
|
||||
popt_burn_cmdline_password(argc, argv);
|
||||
|
||||
cmdline_messaging_context(get_dyn_CONFIGFILE());
|
||||
|
||||
if (smbc_init(get_auth_data, opt.debuglevel) < 0) {
|
||||
fprintf(stderr, "Unable to initialize libsmbclient\n");
|
||||
return 1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user