summaryrefslogtreecommitdiffstats
path: root/source/lib/registry/tools
diff options
context:
space:
mode:
Diffstat (limited to 'source/lib/registry/tools')
-rw-r--r--source/lib/registry/tools/common.c3
-rw-r--r--source/lib/registry/tools/regpatch.c2
-rw-r--r--source/lib/registry/tools/regshell.c2
-rw-r--r--source/lib/registry/tools/regtree.c2
4 files changed, 5 insertions, 4 deletions
diff --git a/source/lib/registry/tools/common.c b/source/lib/registry/tools/common.c
index 6d766fd25c4..c9293cd3102 100644
--- a/source/lib/registry/tools/common.c
+++ b/source/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/source/lib/registry/tools/regpatch.c b/source/lib/registry/tools/regpatch.c
index 2f2cf789a93..441138832e4 100644
--- a/source/lib/registry/tools/regpatch.c
+++ b/source/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/source/lib/registry/tools/regshell.c b/source/lib/registry/tools/regshell.c
index 9b582c3c024..7169d7c9f8b 100644
--- a/source/lib/registry/tools/regshell.c
+++ b/source/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/source/lib/registry/tools/regtree.c b/source/lib/registry/tools/regtree.c
index f95fc1968df..6c21f2cbad4 100644
--- a/source/lib/registry/tools/regtree.c
+++ b/source/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 {