diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2007-12-07 03:01:41 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2007-12-21 05:48:42 +0100 |
commit | bca631be1f4cefeec3d64cd552ec6d9ee9cc1971 (patch) | |
tree | 375d4e22cbf3be367dccc82a50391b5756921e81 /source4/lib/registry/tools | |
parent | 6c77f353d3d952b46b401ab29837ba5b75e353c2 (diff) | |
download | samba-bca631be1f4cefeec3d64cd552ec6d9ee9cc1971.tar.gz samba-bca631be1f4cefeec3d64cd552ec6d9ee9cc1971.tar.bz2 samba-bca631be1f4cefeec3d64cd552ec6d9ee9cc1971.zip |
r26329: Fix more loadparm_context references. Only about a 100 left now.
(This used to be commit ddf233346d848e91bc6a6a572f0f6120540503b7)
Diffstat (limited to 'source4/lib/registry/tools')
-rw-r--r-- | source4/lib/registry/tools/common.c | 3 | ||||
-rw-r--r-- | source4/lib/registry/tools/regpatch.c | 2 | ||||
-rw-r--r-- | source4/lib/registry/tools/regshell.c | 2 | ||||
-rw-r--r-- | source4/lib/registry/tools/regtree.c | 2 |
4 files changed, 5 insertions, 4 deletions
diff --git a/source4/lib/registry/tools/common.c b/source4/lib/registry/tools/common.c index 6d766fd25c..c9293cd310 100644 --- a/source4/lib/registry/tools/common.c +++ b/source4/lib/registry/tools/common.c @@ -24,12 +24,13 @@ #include "lib/registry/tools/common.h" struct registry_context *reg_common_open_remote(const char *remote, + struct loadparm_context *lp_ctx, struct cli_credentials *creds) { struct registry_context *h; WERROR error; - error = reg_open_remote(&h, NULL, creds, remote, NULL); + error = reg_open_remote(&h, NULL, creds, lp_ctx, remote, NULL); if (!W_ERROR_IS_OK(error)) { fprintf(stderr, "Unable to open remote registry at %s:%s \n", diff --git a/source4/lib/registry/tools/regpatch.c b/source4/lib/registry/tools/regpatch.c index 2f2cf789a9..441138832e 100644 --- a/source4/lib/registry/tools/regpatch.c +++ b/source4/lib/registry/tools/regpatch.c @@ -49,7 +49,7 @@ int main(int argc, char **argv) } if (remote) { - h = reg_common_open_remote (remote, cmdline_credentials); + h = reg_common_open_remote (remote, global_loadparm, cmdline_credentials); } else { h = reg_common_open_local (cmdline_credentials, global_loadparm); } diff --git a/source4/lib/registry/tools/regshell.c b/source4/lib/registry/tools/regshell.c index 9b582c3c02..7169d7c9f8 100644 --- a/source4/lib/registry/tools/regshell.c +++ b/source4/lib/registry/tools/regshell.c @@ -497,7 +497,7 @@ int main(int argc, char **argv) ctx = talloc_zero(NULL, struct regshell_context); if (remote != NULL) { - ctx->registry = reg_common_open_remote(remote, + ctx->registry = reg_common_open_remote(remote, global_loadparm, cmdline_credentials); } else if (file != NULL) { ctx->current = reg_common_open_file(file, cmdline_credentials); diff --git a/source4/lib/registry/tools/regtree.c b/source4/lib/registry/tools/regtree.c index f95fc1968d..6c21f2cbad 100644 --- a/source4/lib/registry/tools/regtree.c +++ b/source4/lib/registry/tools/regtree.c @@ -129,7 +129,7 @@ int main(int argc, char **argv) } if (remote != NULL) { - h = reg_common_open_remote(remote, cmdline_credentials); + h = reg_common_open_remote(remote, global_loadparm, cmdline_credentials); } else if (file != NULL) { start_key = reg_common_open_file(file, cmdline_credentials); } else { |