git.samba.org
/
kai
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5f0b797
)
Implement type multi_sz for "net registry setvalue"
author
Volker Lendecke
<vl@samba.org>
Tue, 2 Dec 2008 12:27:50 +0000
(13:27 +0100)
committer
Volker Lendecke
<vl@samba.org>
Tue, 2 Dec 2008 14:05:26 +0000
(15:05 +0100)
source/utils/net_registry.c
patch
|
blob
|
history
diff --git
a/source/utils/net_registry.c
b/source/utils/net_registry.c
index 26710b35800a200c1f6f247bf4704c81c4f78b3d..fc1cc36741cb8b64370cf73ff3725b406e5d74f9 100644
(file)
--- a/
source/utils/net_registry.c
+++ b/
source/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;