From e1bd2dfe8f037c21f16ab66ada7453bbd9e6b6b1 Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Thu, 15 May 2008 14:35:45 +0200 Subject: net registry: add a getvalueraw command to print the value in raw format. Michael (This used to be commit b7e8a3f1caf54145d750209f2e14b5b54c61769b) --- source3/utils/net_registry.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'source3') 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) { @@ -468,6 +474,11 @@ int net_registry(struct net_context *c, int argc, const char **argv) net_registry_getvalue, "Print a registry value", }, + { + "getvalueraw", + net_registry_getvalueraw, + "Print a registry value (raw format)", + }, { "setvalue", net_registry_setvalue, -- cgit