summaryrefslogtreecommitdiffstats
path: root/source4/lib/registry
Commit message (Collapse)AuthorAgeFilesLines
* s4:Remove "Py_RETURN_NONE" compatibility codeMatthias Dieter Wallnöfer2010-02-091-4/+0
| | | | This was needed only by Python 2.3 which we no longer support.
* s4-registry: fixed byte order assumptionsAndrew Tridgell2010-02-074-7/+9
| | | | the registry tests were broken on big-endian systems
* Fix unintentional free of the last value when adding a new value to a key.Wilco Baan Hofman2010-01-201-4/+8
| | | | Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
* s4:lib/registry/util.c - Reintroduce "FIXME"sMatthias Dieter Wallnöfer2009-12-301-0/+2
| | | | Jelmer suggested to put them in again.
* lib/registry/util.c - Reorder the registry datatypes of the conversion functionsMatthias Dieter Wallnöfer2009-11-291-9/+12
| | | | This is absolutely cosmetic and makes the code easier to comprehend.
* Revert "s4:registry/util - Don't include the trailing '\0' in the internal ↵Matthias Dieter Wallnöfer2009-11-291-6/+2
| | | | | | | | | data format but add it on the back-conversion to a string" This reverts commit 7d400715e9af2056690c03a1a2f45c7f343fa313. "convert_string_talloc_convenience" does always add the NULL termination. Didn't know that. Thanks Jelmer for pointing out!
* s4:registry/util - Don't include the trailing '\0' in the internal data ↵Matthias Dieter Wallnöfer2009-11-271-14/+27
| | | | | | | format but add it on the back-conversion to a string As far as I know the registry library saves all data (including) strings without the null termination. So do it also here in a similar way.
* Fix writing corrupt registries because of hardcoded version string in IDL.Wilco Baan Hofman2009-11-151-1/+1
| | | | Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
* Fix writing corrupt REG_SZ to the registry.Wilco Baan Hofman2009-11-151-1/+2
| | | | Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
* Fix trailing garbage in the hbin block.Wilco Baan Hofman2009-11-151-0/+5
| | | | | | | This specifically fixes a problem showing extra bytes of garbage in list and print in regshell, even though the vk.data_length has the correct size. Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
* lib/util Split data_blob_hex_string() into upper and lowerAndrew Bartlett2009-11-121-1/+1
| | | | | | | | | | | | Rather than have a repeat of the bugs we found at the plugfest where hexidecimal strings must be in upper or lower case in particular places, ensure that each caller chooses which case they want. This reverts most of the callers back to upper case, as things were before tridge's patch. The critical call in the extended DN code is of course handled in lower case. Andrew Bartlett
* s4-python: we need to include Python.h firstAndrew Tridgell2009-10-231-1/+1
| | | | | If we don't include Python.h first then we get a pile of warnings due to broken redefines of XOPEN_SOURCE in the Python includes.
* s4-ldbwrap: added re-use of ldb contexts in ldb_wrap_connect()Andrew Tridgell2009-10-231-1/+1
| | | | | | | | | This allows us to reuse a ldb context if it is open twice, instead of going through the expensive process of a full ldb open. We can reuse it if all of the parameters are the same. The change relies on callers using talloc_unlink() or free of a parent to close a ldb context.
* regshell: Add support for 'cd ..' and cd relative to the root.Wilco Baan Hofman2009-09-261-8/+73
| | | | Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
* registry: Fix warning freeing talloc pointer with multiple parents.Jelmer Vernooij2009-09-261-1/+1
|
* DCE/RPC(Python): Rename py_talloc_import to py_talloc_steal.Jelmer Vernooij2009-07-301-7/+7
| | | | | Use py_talloc_reference in DCE/RPC code, fixes access to SAMR pipe.
* source4/lib/registry/patchfile.c(reg_diff_load): fixed possible resource leak.Slava Semushin2009-07-191-0/+1
| | | | | | | | File descriptor leaks when write(2) fails and we are returning from function. Found by cppcheck: [./source4/lib/registry/patchfile.c:319]: (error) Resource leak: fd
* Fixed some uninitialised variablesMatthias Dieter Wallnöfer2009-06-191-1/+2
| | | | I tried hard to not change the program logic. Should fix bug #6439.
* python: Move helper functions for using param into a separate file ratherJelmer Vernooij2009-06-021-1/+1
| | | | than linking against the python module.
* Add a new non-convenience version of push_codepoint.Jelmer Vernooij2009-04-231-20/+18
|
* s4: Use same function signature for convert_* as s3.Jelmer Vernooij2009-03-013-13/+13
|
* Add allow_badcharcnv argument to all conversion function, forJelmer Vernooij2009-03-013-7/+7
| | | | consistency with Samba 3.
* s4:pyregistry: fix crash bugs introduced by ↵Stefan Metzmacher2009-02-061-2/+3
| | | | | | | | | e5a6eadd8214b56da34f733318a0fecaebbe5ef5 The registry api uses wild casts in the returned types, so we can't check the talloc name against the type used in the public api... metze
* s4:pyregistry: fix compiler warningsStefan Metzmacher2009-02-051-13/+16
| | | | metze
* s4:lib/registry: fix c++ warningsStefan Metzmacher2009-02-052-8/+8
| | | | metze
* s4:auth/credentials: the python bindings don't use swig anymoreStefan Metzmacher2009-02-021-1/+1
| | | | metze
* s4:lib/registry: s/new/nkeyStefan Metzmacher2009-02-021-3/+3
| | | | metze
* winreg: fix winreg_EnumValue callers.Günther Deschner2009-01-161-1/+1
| | | | Guenther
* Avoid using a utility header for Python replacements included in Samba,Jelmer Vernooij2009-01-081-1/+5
| | | | since this will not be shipped with talloc/tdb/tevent/etc.
* s3/s4 build: Fix Py_RETURN_NONE to work with python versions < 2.4Tim Prouty2009-01-071-1/+1
|
* py: Properly increase the reference counter of Py_None.Jelmer Vernooij2009-01-061-9/+9
|
* Changed code to use proper talloc context instead of NULL to control memory ↵scudette@gmail.com2009-01-022-2/+2
| | | | leak.
* Memory leak fixed due to accumulation of open reg keys.scudette@gmail.com2009-01-021-5/+8
|
* Fixes uninitialised access as reported by valgrind.scudette@gmail.com2009-01-021-1/+1
|
* s4:pyregistry: use tevent_context_init()Stefan Metzmacher2009-01-021-1/+1
| | | | metze
* s4:lib/tevent: rename structsStefan Metzmacher2008-12-2910-19/+19
| | | | | | | | | | | | | | | | | | | | list="" list="$list event_context:tevent_context" list="$list fd_event:tevent_fd" list="$list timed_event:tevent_timer" for s in $list; do o=`echo $s | cut -d ':' -f1` n=`echo $s | cut -d ':' -f2` r=`git grep "struct $o" |cut -d ':' -f1 |sort -u` files=`echo "$r" | grep -v source3 | grep -v nsswitch | grep -v packaging4` for f in $files; do cat $f | sed -e "s/struct $o/struct $n/g" > $f.tmp mv $f.tmp $f done done metze
* Add header for pyparam.Jelmer Vernooij2008-12-221-1/+1
|
* py: Fix initialisation of subtypes, fix segfaults.Jelmer Vernooij2008-12-211-0/+3
|
* Use plain Python C API for registry module, rather than SWIG.Jelmer Vernooij2008-12-183-19/+322
|
* Start converting registry python module to plain C rather than SWIG.Jelmer Vernooij2008-12-165-4870/+132
|
* s4:torture: fix the build with auto dependenciesStefan Metzmacher2008-11-161-1/+1
| | | | metze
* Remove use of global_loadparm during initialization of gensec.Jelmer Vernooij2008-11-021-1/+1
|
* Fix installation of Samba 4 during merged build.Jelmer Vernooij2008-10-301-1/+1
|
* Remove unused include param/param.h.Jelmer Vernooij2008-10-245-6/+1
|
* Regenerate SWIG files.Jelmer Vernooij2008-10-242-7/+6
|
* Remove more usages of global_loadparm.Jelmer Vernooij2008-10-246-25/+48
|
* Remove more uses of global_loadparm.Jelmer Vernooij2008-10-241-8/+4
|
* Remove iconv_convenience argument from convert_string{,talloc}() butJelmer Vernooij2008-10-243-7/+7
| | | | make them wrappers around convert_string{,talloc}_convenience().
* Fix double free.Jelmer Vernooij2008-10-211-1/+0
|
* Fix the build.Jelmer Vernooij2008-10-211-2/+2
|