summaryrefslogtreecommitdiff
path: root/source4/lib/registry/patchfile_dotreg.c
AgeCommit message (Collapse)AuthorFilesLines
2011-03-29Ensure convert_string_XXX is always called with a valid converted_size pointer.Jeremy Allison1-1/+2
Preparation for cleaning up this API. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Tue Mar 29 21:01:49 CEST 2011 on sn-devel-104
2011-03-24charcnv: removed the allow_badcharcnv and allow_bad_conv options to ↵Andrew Tridgell1-2/+2
convert_string*() we shouldn't accept bad multi-byte strings, it just hides problems Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Thu Mar 24 01:47:26 CET 2011 on sn-devel-104
2010-10-04registry: Make a two more functions static.Jelmer Vernooij1-2/+2
2010-10-03s4:patchfile_dotreg.c - use "size_t" when counting characters in DATA_BLOBsMatthias Dieter Wallnöfer1-1/+1
Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org> Autobuild-Date: Sun Oct 3 16:03:41 UTC 2010 on sn-devel-104
2010-10-03Make sure REG_SZ is properly written to a .reg file (not as hex(1)), fix ↵Wilco Baan Hofman1-11/+25
trailing comma REG_BINARY. Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-10-03Fix patchfile_dotreg to write proper .reg files: 'hex(1..B):', 'dword:', etcWilco Baan Hofman1-3/+73
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-10-03Do not include the closing doublequote in .reg files.Wilco Baan Hofman1-1/+1
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-10-03Make sure we write the value stored in value, not line (doublequoted).Wilco Baan Hofman1-4/+4
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-10-03Fix .reg file format parsing.Wilco Baan Hofman1-39/+124
* multiline data * doublequoted value name * handle windows format CRLF Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-05-18Finish removal of iconv_convenience in public API's.Jelmer Vernooij1-7/+2
2010-03-22s4:registry - add more "W_ERROR_HAVE_NO_MEMORY" invocations (on talloc'ed stuff)Matthias Dieter Wallnöfer1-0/+3
2010-03-22s4:registry - "patchfile_dotreg.c" - fix a memory leakMatthias Dieter Wallnöfer1-3/+5
Here we allocate memory on the "NULL" context through "reg_val_data_string" on each call of "set_value". So when we have written out the allocated data on the specified file descriptor we should immediately free this memory! Otherwise we may end up with a big memory consumption on big registry databases.
2008-10-24Remove unused include param/param.h.Jelmer Vernooij1-1/+0
2008-04-15Fixed the patchfile tests and tidy up the patchfile backends.Wilco Baan Hofman1-4/+4
(This used to be commit 6e9b1e35a269af2eda79356c1525f5413656d648)
2008-04-14Attempt to fix the patchfile_preg backend for big endian machines.Wilco Baan Hofman1-1/+1
Update some functions to properly state what is not supported (yet). Registry .reg uses UCS-2, not UTF-16. (This used to be commit 664a035dd9fc6e3b50a771baa98f8d79360cc4c1)
2008-04-02Merge patchfile.h into registry.hJelmer Vernooij1-1/+0
(This used to be commit 7b434df67aefc667993f0ebd955af9c1c258f153)
2008-03-28Convert some more files to GPLv3.Andrew Kroeger1-1/+1
(This used to be commit ebe5e8399422eb7e2ff4deb546338823e2718907)
2008-02-25Remove uses of global_loadparm.Jelmer Vernooij1-1/+2
(This used to be commit a16c9a2129ce92e7e1a613b2badd168e42ead436)
2008-02-21Remove more uses of global_loadparm.Jelmer Vernooij1-2/+8
(This used to be commit 3430cc60972b94d0d238bc39f473feed96949c5d)
2007-10-10r25544: Cleanup some more indents in lib/registry.Günther Deschner1-29/+41
Guenther (This used to be commit 0d9826dc54057db2cfebcb806e5442c4dcf60daa)
2007-10-10r25001: Fix more C++ and other warnings, fix some of the indentation with ↵Jelmer Vernooij1-1/+1
ts=4 lines that I accidently added earlier. (This used to be commit 0bcb21ed740fcec0f48ad36bbc2deee2948e8fc7)
2007-10-10r24994: Fix some C++ warnings.Jelmer Vernooij1-5/+6
(This used to be commit 925abf74fa1ed5ae726bae8781ec549302786b39)
2007-10-10r24704: Fix bug in the registry patch code.. all the more proves this code ↵Jelmer Vernooij1-1/+1
needs tests. (This used to be commit aa98d219571c4a7af1e5a0f8483cc17a4b6b36e2)
2007-10-10r24667: Finally merge the registry improvements that Wilco Baan Hofman and I ↵Jelmer Vernooij1-0/+247
have been working on for at least half a year now. Contains the following improvements: * proper layering (finally!) for the registry library. Distinction is now made between 'real' backends (local, remote, wine, etc) and the low-level hive backends (regf, creg, ldb, ...) that are only used by the local registry backend * tests for all important hive and registry operations * re-enable RPC-WINREG tests (still needs more work though, as some return values aren't checked yet) * write support for REGF files * dir backend now supports setting/reading values, creating keys * support for storing security descriptors * remove CREG backend as it was incomplete, didn't match the data model and wasn't used at all anyway * support for parsing ADM files as used by the policy editor (see lib/policy) * support for parsing PREG files (format used by .POL files) * new streaming interface for registry diffs (improves speed and memory usage for regdiff/regpatch significantly) ... and fixes a large number of bugs in the registry code (This used to be commit 7a1eec6358bc863dfc671c542b7185d3e39d7b5a)