diff options
author | Christof Schmitt <cs@samba.org> | 2018-08-21 16:11:02 -0700 |
---|---|---|
committer | Karolin Seeger <kseeger@samba.org> | 2018-10-09 11:29:24 +0200 |
commit | 79e60e59eaf10c09a5caa1749ee3332af7050fe6 (patch) | |
tree | 908c03dd23aaa176fb2d1a43c21cebadd443e4a5 /source3 | |
parent | 4d9a78ca3dbcb0d3aee1d663d6b49d65dcd9227d (diff) | |
download | samba-79e60e59eaf10c09a5caa1749ee3332af7050fe6.tar.gz |
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)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/utils/smbget.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/utils/smbget.c b/source3/utils/smbget.c index 37462fa131f..4653c6894e0 100644 --- a/source3/utils/smbget.c +++ b/source3/utils/smbget.c @@ -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; |