summaryrefslogtreecommitdiff
path: root/source3/utils
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2008-05-15 14:35:45 +0200
committerMichael Adam <obnox@samba.org>2008-05-15 17:17:55 +0200
commite1bd2dfe8f037c21f16ab66ada7453bbd9e6b6b1 (patch)
tree0fd9efae70dd68bb302ab4fee6818c1b8838227a /source3/utils
parent227130ee0ced777a9593d86f13159f6b24289bc5 (diff)
downloadsamba-e1bd2dfe8f037c21f16ab66ada7453bbd9e6b6b1.tar.gz
samba-e1bd2dfe8f037c21f16ab66ada7453bbd9e6b6b1.tar.bz2
samba-e1bd2dfe8f037c21f16ab66ada7453bbd9e6b6b1.zip
net registry: add a getvalueraw command to print the value in raw format.
Michael (This used to be commit b7e8a3f1caf54145d750209f2e14b5b54c61769b)
Diffstat (limited to 'source3/utils')
-rw-r--r--source3/utils/net_registry.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/source3/utils/net_registry.c b/source3/utils/net_registry.c
index 73cbbaaa0d..6b3f6ffbaa 100644
--- a/source3/utils/net_registry.c
+++ b/source3/utils/net_registry.c
@@ -306,6 +306,12 @@ static int net_registry_getvalue(struct net_context *c, int argc,
return net_registry_getvalue_internal(c, argc, argv, false);
}
+static int net_registry_getvalueraw(struct net_context *c, int argc,
+ const char **argv)
+{
+ return net_registry_getvalue_internal(c, argc, argv, true);
+}
+
static int net_registry_setvalue(struct net_context *c, int argc,
const char **argv)
{
@@ -469,6 +475,11 @@ int net_registry(struct net_context *c, int argc, const char **argv)
"Print a registry value",
},
{
+ "getvalueraw",
+ net_registry_getvalueraw,
+ "Print a registry value (raw format)",
+ },
+ {
"setvalue",
net_registry_setvalue,
"Set a new registry value"