summaryrefslogtreecommitdiff
path: root/source3/rpc_parse
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2005-05-26 20:36:04 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:57:00 -0500
commitd5e79de59561e614fce79a9460c3b2caaa459673 (patch)
tree43c6c7f352ff1c0f9f16808466b47069db3655e7 /source3/rpc_parse
parent45d03e327ae8b2b9b9761ed76161d4467b27f730 (diff)
downloadsamba-d5e79de59561e614fce79a9460c3b2caaa459673.tar.gz
samba-d5e79de59561e614fce79a9460c3b2caaa459673.tar.bz2
samba-d5e79de59561e614fce79a9460c3b2caaa459673.zip
r6995: * fixing segfault when writing out registry values of zero length
* add RegSaveKey() client function * add 'net rpc registry save' subcommand (This used to be commit f35e0a0a8d8df5c39e61ebd34c4aecbc5c9bb635)
Diffstat (limited to 'source3/rpc_parse')
-rw-r--r--source3/rpc_parse/parse_reg.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/source3/rpc_parse/parse_reg.c b/source3/rpc_parse/parse_reg.c
index ce23d15a11..7e8ae03039 100644
--- a/source3/rpc_parse/parse_reg.c
+++ b/source3/rpc_parse/parse_reg.c
@@ -621,6 +621,16 @@ BOOL reg_io_r_restore_key(const char *desc, REG_R_RESTORE_KEY *r_u, prs_struct
}
/*******************************************************************
+********************************************************************/
+
+void init_q_reg_save_key( REG_Q_SAVE_KEY *q_u, POLICY_HND *handle, const char *fname )
+{
+ memcpy(&q_u->pol, handle, sizeof(q_u->pol));
+ init_unistr4( &q_u->filename, fname, UNI_STR_TERMINATE );
+ q_u->sec_attr = NULL;
+}
+
+/*******************************************************************
reads or writes a structure.
********************************************************************/