summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2008-12-02 15:04:45 +0100
committerVolker Lendecke <vl@samba.org>2008-12-02 15:04:45 +0100
commit34cfcd666354ec1a20761a90c2d28d4fe7049f6c (patch)
treefa8e19d89af21208212149e094ceb2037511e4dd /source3
parentc554080dd988791ec2db37c96ff7cc709b0ee6ab (diff)
downloadsamba-34cfcd666354ec1a20761a90c2d28d4fe7049f6c.tar.gz
samba-34cfcd666354ec1a20761a90c2d28d4fe7049f6c.tar.bz2
samba-34cfcd666354ec1a20761a90c2d28d4fe7049f6c.zip
Implement type multi_sz for "net registry setvalue"
Diffstat (limited to 'source3')
-rw-r--r--source3/utils/net_registry.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/utils/net_registry.c b/source3/utils/net_registry.c
index 64a0d8ac40..e2f410b9ac 100644
--- a/source3/utils/net_registry.c
+++ b/source3/utils/net_registry.c
@@ -339,6 +339,10 @@ static int net_registry_setvalue(struct net_context *c, int argc,
value.type = REG_SZ;
value.v.sz.len = strlen(argv[3])+1;
value.v.sz.str = CONST_DISCARD(char *, argv[3]);
+ } else if (strequal(argv[2], "multi_sz")) {
+ value.type = REG_MULTI_SZ;
+ value.v.multi_sz.num_strings = argc - 3;
+ value.v.multi_sz.strings = (char **)(argv + 3);
} else {
d_fprintf(stderr, "type \"%s\" not implemented\n", argv[2]);
goto done;