diff options
author | Richard Sharpe <sharpe@samba.org> | 2003-04-25 07:04:32 +0000 |
---|---|---|
committer | Richard Sharpe <sharpe@samba.org> | 2003-04-25 07:04:32 +0000 |
commit | 11b96ef57485a15ec72e1d890ce6ba01b2089464 (patch) | |
tree | f46f03e030c89f15ce4b36107f73ca5e5c2deab9 /source3 | |
parent | 7aa665f2b29ecb4bcd9367a71eeca4944d3a8faf (diff) | |
download | samba-11b96ef57485a15ec72e1d890ce6ba01b2089464.tar.gz samba-11b96ef57485a15ec72e1d890ce6ba01b2089464.tar.bz2 samba-11b96ef57485a15ec72e1d890ce6ba01b2089464.zip |
Finish laying out the SD, and now back to finishing off NK records ...
(This used to be commit 74c8f616c33b08d94a15e1ba8219063b190fe5f2)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/utils/editreg.c | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/source3/utils/editreg.c b/source3/utils/editreg.c index a367c92d32..641c7070ad 100644 --- a/source3/utils/editreg.c +++ b/source3/utils/editreg.c @@ -2862,6 +2862,16 @@ unsigned int nt_store_security(REGF *regf, KEY_SEC_DESC *sec) } /* + * Store a VAL LIST + */ + +int nt_store_val_list(REGF *regf, VAL_LIST * values) +{ + + return 0; +} + +/* * Store a KEY in the file ... * * We store this depth first, and defer storing the lf struct until @@ -2871,6 +2881,7 @@ unsigned int nt_store_security(REGF *regf, KEY_SEC_DESC *sec) * recurse down the LF structures ... * * We return the offset of the NK struct + * FIXME, FIXME, FIXME: Convert to using SIVAL and SSVAL ... */ int nt_store_reg_key(REGF *regf, REG_KEY *key) { @@ -2908,11 +2919,19 @@ int nt_store_reg_key(REGF *regf, REG_KEY *key) */ sk_off = nt_store_security(regf, key->security); + nk_hdr->sk_off = sk_off; /* * Then, store the val list and store its offset */ - + if (key->values) { + nk_hdr->val_cnt = key->values->val_count; + nk_hdr->val_off = nt_store_val_list(regf, key->values); + } + else { + nk_hdr->val_off = -1; + nk_hdr->val_cnt = 0; + } /* * Finally, store the subkeys, and their offsets |