diff options
author | Jeremy Allison <jra@samba.org> | 2017-05-09 16:10:03 -0700 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2017-05-11 20:30:13 +0200 |
commit | b2de5a81bf2e5a79b101859c738fc057af7308ed (patch) | |
tree | 439e0d660e3ab059deb4b0108170f3a31a9a8d70 /source4/torture/libsmbclient | |
parent | dd4a3ce92792c4687f92d4b9e88f7bbee6cad593 (diff) | |
download | samba-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/libsmbclient')
-rw-r--r-- | source4/torture/libsmbclient/libsmbclient.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source4/torture/libsmbclient/libsmbclient.c b/source4/torture/libsmbclient/libsmbclient.c index b93fda00b69..f6cd8102c4d 100644 --- a/source4/torture/libsmbclient/libsmbclient.c +++ b/source4/torture/libsmbclient/libsmbclient.c @@ -38,7 +38,8 @@ bool torture_libsmbclient_init_context(struct torture_context *tctx, /* yes, libsmbclient API frees the username when freeing the context, so * have to pass malloced data here */ - smbc_setUser(ctx, strdup(cli_credentials_get_username(cmdline_credentials))); + smbc_setUser(ctx, strdup(cli_credentials_get_username( + popt_get_cmdline_credentials()))); *ctx_p = ctx; |