summaryrefslogtreecommitdiff
path: root/source3/rpc_server
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2006-12-03 17:16:45 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:16:21 -0500
commit61bd0c8e450b3638c38bc60eb31fc6a4488f3121 (patch)
tree1134e4c540231a0d497be3008cb788b7716450b2 /source3/rpc_server
parentb0a6049391d4aebcaa6e0370deb20651a07dcbe8 (diff)
downloadsamba-61bd0c8e450b3638c38bc60eb31fc6a4488f3121.tar.gz
samba-61bd0c8e450b3638c38bc60eb31fc6a4488f3121.tar.bz2
samba-61bd0c8e450b3638c38bc60eb31fc6a4488f3121.zip
r20019: Replace one set of tricky code by calls to another set of tricky code:
Initializing the reg_db now uses reg_createkey and reg_setvalue. Volker (This used to be commit cab5ccbbe484795f13531726d68b978073262e33)
Diffstat (limited to 'source3/rpc_server')
-rw-r--r--source3/rpc_server/srv_srvsvc_nt.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/source3/rpc_server/srv_srvsvc_nt.c b/source3/rpc_server/srv_srvsvc_nt.c
index abfa794518..1b86fa349f 100644
--- a/source3/rpc_server/srv_srvsvc_nt.c
+++ b/source3/rpc_server/srv_srvsvc_nt.c
@@ -1375,18 +1375,10 @@ char *valid_share_pathname(char *dos_pathname)
static void setval_helper(struct registry_key *key, const char *name,
const char *value, WERROR *err)
{
- struct registry_value val;
-
if (!W_ERROR_IS_OK(*err)) {
return;
}
-
- ZERO_STRUCT(val);
- val.type = REG_SZ;
- val.v.sz.str = CONST_DISCARD(char *, value);
- val.v.sz.len = strlen(value)+1;
-
- *err = reg_setvalue(key, name, &val);
+ *err = reg_set_sz(key, name, value);
}
static WERROR add_share(const char *share_name, const char *path,