mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
net registry: add a getvalueraw command to print the value in raw format.
Michael
(This used to be commit b7e8a3f1ca
)
This commit is contained in:
parent
227130ee0c
commit
e1bd2dfe8f
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user