summaryrefslogtreecommitdiff
path: root/source4/lib/registry/tools/regtree.c
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2004-04-11 15:34:18 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:51:13 -0500
commit6df152f96495e68426a52bf62be2c44900b7e8cf (patch)
tree0d1f019049171b1b63bb7f9622567ddba53789fe /source4/lib/registry/tools/regtree.c
parent3185ace216586b6f1d676210630206bf00d5474e (diff)
downloadsamba-6df152f96495e68426a52bf62be2c44900b7e8cf.tar.gz
samba-6df152f96495e68426a52bf62be2c44900b7e8cf.tar.bz2
samba-6df152f96495e68426a52bf62be2c44900b7e8cf.zip
r164: Viewing remote registries with gregedit works now
(This used to be commit 697560a117ba19bb44539d6d63cc9143127e29d1)
Diffstat (limited to 'source4/lib/registry/tools/regtree.c')
-rw-r--r--source4/lib/registry/tools/regtree.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/lib/registry/tools/regtree.c b/source4/lib/registry/tools/regtree.c
index 548a702d48..b8a5f50496 100644
--- a/source4/lib/registry/tools/regtree.c
+++ b/source4/lib/registry/tools/regtree.c
@@ -72,7 +72,7 @@ int main (int argc, char **argv)
POPT_AUTOHELP
{"backend", 'b', POPT_ARG_STRING, &backend, 0, "backend to use", NULL},
{"fullpath", 'f', POPT_ARG_NONE, &fullpath, 0, "show full paths", NULL},
- {"credentials", 'c', POPT_ARG_NONE, &credentials, 0, "credentials (user%password)", NULL},
+ {"credentials", 'c', POPT_ARG_STRING, &credentials, 0, "credentials (user%password)", NULL},
{"no-values", 'V', POPT_ARG_NONE, &no_values, 0, "don't show values", NULL},
POPT_TABLEEND
};
@@ -86,7 +86,7 @@ int main (int argc, char **argv)
error = reg_open(backend, poptPeekArg(pc), credentials, &h);
if(!W_ERROR_IS_OK(error)) {
- fprintf(stderr, "Unable to open '%s' with backend '%s'\n", poptGetArg(pc), backend);
+ fprintf(stderr, "Unable to open '%s' with backend '%s':%s \n", poptGetArg(pc), backend, win_errstr(error));
return 1;
}
poptFreeContext(pc);