diff options
author | Gerald Carter <jerry@samba.org> | 2005-06-17 15:35:31 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 10:57:19 -0500 |
commit | 2129d3c711a109b47c3c1596a6a639520d2f72d2 (patch) | |
tree | 4627816c5ff9085a1f87c7e981f6f21f3693899f /source3/rpc_parse | |
parent | 2102f6bff9641eeec3b593529be7bf8d9ec784d4 (diff) | |
download | samba-2129d3c711a109b47c3c1596a6a639520d2f72d2.tar.gz samba-2129d3c711a109b47c3c1596a6a639520d2f72d2.tar.xz samba-2129d3c711a109b47c3c1596a6a639520d2f72d2.zip |
r7691: * add .gdbinit to the svn:ignore files
* start adding write support to the Samba registry
Flesh out the server implementations of
RegCreateKey(), RegSetValue(), RegDeleteKey() and RegDeleteValue()
I can create a new key using regedit.exe now but the 'New Key #1'
key cannot be deleted yet.
(This used to be commit e188fdbef8f0ad202b0ecf3c30be2941ebe6d5b1)
Diffstat (limited to 'source3/rpc_parse')
-rw-r--r-- | source3/rpc_parse/parse_reg.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/source3/rpc_parse/parse_reg.c b/source3/rpc_parse/parse_reg.c index 5eed245a280..5cc4d06f4fb 100644 --- a/source3/rpc_parse/parse_reg.c +++ b/source3/rpc_parse/parse_reg.c @@ -297,7 +297,7 @@ BOOL reg_io_r_create_key(const char *desc, REG_R_CREATE_KEY *r_u, if(!prs_align(ps)) return False; - if(!smb_io_pol_hnd("", &r_u->key_pol, ps, depth)) + if(!smb_io_pol_hnd("", &r_u->handle, ps, depth)) return False; if(!prs_uint32("unknown", ps, depth, &r_u->unknown)) return False; @@ -407,8 +407,6 @@ BOOL reg_io_q_delete_key(const char *desc, REG_Q_DELETE_KEY *q_u, if(!prs_unistr4("", ps, depth, &q_u->name)) return False; - if(!prs_align(ps)) - return False; return True; } @@ -1219,7 +1217,7 @@ void init_reg_q_set_val(REG_Q_SET_VALUE *q_u, POLICY_HND *pol, { ZERO_STRUCTP(q_u); - memcpy(&q_u->pol, pol, sizeof(q_u->pol)); + memcpy(&q_u->handle, pol, sizeof(q_u->handle)); init_unistr4(&q_u->name, val_name, UNI_STR_TERMINATE); @@ -1243,7 +1241,7 @@ BOOL reg_io_q_set_value(const char *desc, REG_Q_SET_VALUE *q_u, prs_struct *ps, if(!prs_align(ps)) return False; - if(!smb_io_pol_hnd("", &q_u->pol, ps, depth)) + if(!smb_io_pol_hnd("", &q_u->handle, ps, depth)) return False; if(!prs_unistr4("name", ps, depth, &q_u->name )) |