[SCM] Samba Shared Repository - branch master updated - 34cfcd666354ec1a20761a90c2d28d4fe7049f6c

Volker Lendecke vlendec at samba.org
Tue Dec 2 14:00:25 GMT 2008


The branch, master has been updated
       via  34cfcd666354ec1a20761a90c2d28d4fe7049f6c (commit)
      from  c554080dd988791ec2db37c96ff7cc709b0ee6ab (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit 34cfcd666354ec1a20761a90c2d28d4fe7049f6c
Author: Volker Lendecke <vl at samba.org>
Date:   Tue Dec 2 15:04:45 2008 +0100

    Implement type multi_sz for "net registry setvalue"

-----------------------------------------------------------------------

Summary of changes:
 source3/utils/net_registry.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source3/utils/net_registry.c b/source3/utils/net_registry.c
index 64a0d8a..e2f410b 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;


-- 
Samba Shared Repository


More information about the samba-cvs mailing list