From d5e79de59561e614fce79a9460c3b2caaa459673 Mon Sep 17 00:00:00 2001 From: Gerald Carter Date: Thu, 26 May 2005 20:36:04 +0000 Subject: 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) --- source3/rpc_parse/parse_reg.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'source3/rpc_parse') 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 @@ -620,6 +620,16 @@ BOOL reg_io_r_restore_key(const char *desc, REG_R_RESTORE_KEY *r_u, prs_struct return True; } +/******************************************************************* +********************************************************************/ + +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. ********************************************************************/ -- cgit