summaryrefslogtreecommitdiff
path: root/source4/scripting/ejs/smbcalls_cli.c
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2008-02-21 18:21:44 +0100
committerJelmer Vernooij <jelmer@samba.org>2008-02-21 18:21:44 +0100
commite11c61bc5cd487dce06fc38bb0ee8c4e24b04e8c (patch)
tree5e7dd6c56c9886c4f8530faf92293d4a22684215 /source4/scripting/ejs/smbcalls_cli.c
parent3c20b3eebafe46127a7b69cca573c6a128f8de89 (diff)
downloadsamba-e11c61bc5cd487dce06fc38bb0ee8c4e24b04e8c.tar.gz
samba-e11c61bc5cd487dce06fc38bb0ee8c4e24b04e8c.tar.bz2
samba-e11c61bc5cd487dce06fc38bb0ee8c4e24b04e8c.zip
Introduce mprLpCtx() similar to mprMemCtx() for loadparm_context used by
all EJS code. (This used to be commit 184988866fe8e740f58e3683eefcaa70f8b51d11)
Diffstat (limited to 'source4/scripting/ejs/smbcalls_cli.c')
-rw-r--r--source4/scripting/ejs/smbcalls_cli.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source4/scripting/ejs/smbcalls_cli.c b/source4/scripting/ejs/smbcalls_cli.c
index 8295a0879f..4f2d52b25c 100644
--- a/source4/scripting/ejs/smbcalls_cli.c
+++ b/source4/scripting/ejs/smbcalls_cli.c
@@ -432,23 +432,23 @@ static int ejs_tree_connect(MprVarHandle eid, int argc, char **argv)
/* Set up credentials */
creds = cli_credentials_init(NULL);
- cli_credentials_set_conf(creds, global_loadparm);
+ cli_credentials_set_conf(creds, mprLpCtx());
cli_credentials_parse_string(creds, argv[1], CRED_SPECIFIED);
/* Do connect */
io.in.dest_host = hostname;
- io.in.dest_ports = lp_smb_ports(global_loadparm);
+ io.in.dest_ports = lp_smb_ports(mprLpCtx());
io.in.called_name = strupper_talloc(mem_ctx, hostname);
io.in.service = sharename;
io.in.service_type = "?????";
io.in.credentials = creds;
io.in.fallback_to_anonymous = false;
- io.in.workgroup = lp_workgroup(global_loadparm);
+ io.in.workgroup = lp_workgroup(mprLpCtx());
lp_smbcli_options(global_loadparm, &io.in.options);
result = smb_composite_connect(&io, mem_ctx,
- lp_resolve_context(global_loadparm),
+ lp_resolve_context(mprLpCtx()),
NULL);
tree = io.out.tree;