]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
net registry: add a getvalueraw command to print the value in raw format.
authorMichael Adam <obnox@samba.org>
Thu, 15 May 2008 12:35:45 +0000 (14:35 +0200)
committerMichael Adam <obnox@samba.org>
Thu, 15 May 2008 15:17:55 +0000 (17:17 +0200)
Michael

source/utils/net_registry.c

index 73cbbaaa0d3c5b7f432fa2835bb0cc94f70e19eb..6b3f6ffbaa2cd20239802a6977b2bc992ffae7ae 100644 (file)
@@ -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,