[Samba] regpatch writing to local registry hive with -F not working (registery-utils 4.0.0~alpha15~git20110124.dfsg1-2ubuntu1)
esiotrot at gmail.com
Sat May 14 16:28:33 MDT 2011
On 14 May 2011 22:09, Michael Wood <esiotrot at gmail.com> wrote:
> On 14 May 2011 19:53, RiCH <rich at richud.com> wrote:
>> I was hoping I could modify a locally mounted registry hive using
>> regpatch and a .reg file but the -F argument seems to have no function.
> Try this patch (untested, but based on what regtree does).
I don't know if this does the right thing, but it does at least read
the specified file.
I've tried to test it on some arbitrary registry hive files and .reg
files I've managed to dig up or find online, but I'm not sure I'm
using regpatch properly. I've either got errors like:
$ bin/regpatch -F /tmp/NTUSER.DAT /tmp/test.reg
Error adding new key 'HKEY_CURRENT_USER\Software\Microsoft\Internet
Error adding key HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main
or no output whatsoever and apparently no change to the hive.
I hope the patch helps, but I'm not sure that just using
start_key->context is the right thing to do.
Michael Wood <esiotrot at gmail.com>
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 1427 bytes
Desc: not available
More information about the samba