diff options
author | Volker Lendecke <vl@samba.org> | 2008-12-02 13:27:50 +0100 |
---|---|---|
committer | Karolin Seeger <kseeger@samba.org> | 2008-12-11 10:27:13 +0100 |
commit | 6f455046a70215ec5b7e4e8cd83635ee4c82778e (patch) | |
tree | 77722332995eaa45c2502ded0460d707f1403b61 /source/utils | |
parent | 1955cd6174c9bc8446568bfa0dda0bd3b271c5bc (diff) | |
download | samba-6f455046a70215ec5b7e4e8cd83635ee4c82778e.tar.gz |
Implement type multi_sz for "net registry setvalue"
(cherry picked from commit 63dbbdb33bcab7b762f308a135bb91b8dfc97757)
Diffstat (limited to 'source/utils')
-rw-r--r-- | source/utils/net_registry.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/utils/net_registry.c b/source/utils/net_registry.c index 26710b35800..fc1cc36741c 100644 --- 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; |