summaryrefslogtreecommitdiff
path: root/source4/torture/basic
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2017-05-09 16:10:03 -0700
committerJeremy Allison <jra@samba.org>2017-05-11 20:30:13 +0200
commitb2de5a81bf2e5a79b101859c738fc057af7308ed (patch)
tree439e0d660e3ab059deb4b0108170f3a31a9a8d70 /source4/torture/basic
parentdd4a3ce92792c4687f92d4b9e88f7bbee6cad593 (diff)
downloadsamba-b2de5a81bf2e5a79b101859c738fc057af7308ed.tar.gz
s4: popt: Global replace of cmdline_credentials -> popt_get_cmdline_credentials().
Add one use of popt_set_cmdline_credentials(). Fix 80 column limits when cmdline_credentials changes to popt_get_cmdline_credentials(). Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
Diffstat (limited to 'source4/torture/basic')
-rw-r--r--source4/torture/basic/misc.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/source4/torture/basic/misc.c b/source4/torture/basic/misc.c
index 7dcb9a7014c..68b7cbec812 100644
--- a/source4/torture/basic/misc.c
+++ b/source4/torture/basic/misc.c
@@ -34,9 +34,8 @@
#include "libcli/composite/composite.h"
#include "param/param.h"
#include "torture/basic/proto.h"
+#include "lib/cmdline/popt_common.h"
-extern struct cli_credentials *cmdline_credentials;
-
static bool wait_lock(struct smbcli_state *c, int fnum, uint32_t offset, uint32_t len)
{
while (NT_STATUS_IS_ERR(smbcli_lock(c->tree, fnum, offset, len, -1, WRITE_LOCK))) {
@@ -873,7 +872,7 @@ static struct composite_context *torture_connect_async(
smb->in.socket_options = lpcfg_socket_options(tctx->lp_ctx);
smb->in.called_name = strupper_talloc(mem_ctx, host);
smb->in.service_type=NULL;
- smb->in.credentials=cmdline_credentials;
+ smb->in.credentials=popt_get_cmdline_credentials();
smb->in.fallback_to_anonymous=false;
smb->in.gensec_settings = lpcfg_gensec_settings(mem_ctx, tctx->lp_ctx);
smb->in.workgroup=workgroup;