mirror of
https://github.com/samba-team/samba.git
synced 2025-09-09 01:44:21 +03:00
Remove use of global_loadparm.
This commit is contained in:
@@ -150,7 +150,7 @@ struct composite_context *smb_composite_fetchfile_send(struct smb_composite_fetc
|
|||||||
state->connect->in.options = io->in.options;
|
state->connect->in.options = io->in.options;
|
||||||
|
|
||||||
state->creq = smb_composite_connect_send(state->connect, state,
|
state->creq = smb_composite_connect_send(state->connect, state,
|
||||||
lp_resolve_context(global_loadparm), event_ctx);
|
io->in.resolve_ctx, event_ctx);
|
||||||
if (state->creq == NULL) goto failed;
|
if (state->creq == NULL) goto failed;
|
||||||
|
|
||||||
state->creq->async.private_data = c;
|
state->creq->async.private_data = c;
|
||||||
|
@@ -56,6 +56,7 @@ struct smb_composite_fetchfile {
|
|||||||
const char *workgroup;
|
const char *workgroup;
|
||||||
const char *filename;
|
const char *filename;
|
||||||
struct smbcli_options options;
|
struct smbcli_options options;
|
||||||
|
struct resolve_context *resolve_ctx;
|
||||||
} in;
|
} in;
|
||||||
struct {
|
struct {
|
||||||
uint8_t *data;
|
uint8_t *data;
|
||||||
|
@@ -31,6 +31,7 @@
|
|||||||
#include "lib/cmdline/popt_common.h"
|
#include "lib/cmdline/popt_common.h"
|
||||||
#include "torture/util.h"
|
#include "torture/util.h"
|
||||||
#include "param/param.h"
|
#include "param/param.h"
|
||||||
|
#include "libcli/resolve/resolve.h"
|
||||||
|
|
||||||
#define BASEDIR "\\composite"
|
#define BASEDIR "\\composite"
|
||||||
|
|
||||||
@@ -161,6 +162,7 @@ static bool test_fetchfile(struct smbcli_state *cli, struct torture_context *tct
|
|||||||
io2.in.credentials = cmdline_credentials;
|
io2.in.credentials = cmdline_credentials;
|
||||||
io2.in.workgroup = lp_workgroup(tctx->lp_ctx);
|
io2.in.workgroup = lp_workgroup(tctx->lp_ctx);
|
||||||
io2.in.filename = fname;
|
io2.in.filename = fname;
|
||||||
|
io2.in.resolve_ctx = lp_resolve_context(tctx->lp_ctx);
|
||||||
lp_smbcli_options(tctx->lp_ctx, &io2.in.options);
|
lp_smbcli_options(tctx->lp_ctx, &io2.in.options);
|
||||||
|
|
||||||
printf("testing parallel fetchfile with %d ops\n", torture_numops);
|
printf("testing parallel fetchfile with %d ops\n", torture_numops);
|
||||||
|
Reference in New Issue
Block a user