Andrew Tridgell
3050f83288
s4-python: we need to include Python.h first
...
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.
2009-10-23 16:23:01 +11:00
Andrew Tridgell
4ad0397d8a
s4-ldbwrap: added re-use of ldb contexts in ldb_wrap_connect()
...
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.
2009-10-23 14:52:17 +11:00
Wilco Baan Hofman
9af1c6db0f
regshell: Add support for 'cd ..' and cd relative to the root.
...
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2009-09-26 17:05:34 +02:00
Jelmer Vernooij
169ff6efea
registry: Fix warning freeing talloc pointer with multiple parents.
2009-09-26 15:41:22 +02:00
Jelmer Vernooij
6768cfe624
DCE/RPC(Python): Rename py_talloc_import to py_talloc_steal.
...
Use py_talloc_reference in DCE/RPC code, fixes
access to SAMR pipe.
2009-07-30 20:04:42 +02:00
Slava Semushin
11fa3ed9ee
source4/lib/registry/patchfile.c(reg_diff_load): fixed possible resource leak.
...
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
2009-07-19 16:01:12 +02:00
Matthias Dieter Wallnöfer
2627c6c0c2
Fixed some uninitialised variables
...
I tried hard to not change the program logic. Should fix bug #6439 .
2009-06-19 11:32:01 +10:00
Jelmer Vernooij
fe2b04b4bb
python: Move helper functions for using param into a separate file rather
...
than linking against the python module.
2009-06-02 18:05:40 +02:00
Jelmer Vernooij
80420745ff
Add a new non-convenience version of push_codepoint.
2009-04-23 17:50:18 +02:00
Jelmer Vernooij
94069bd274
s4: Use same function signature for convert_* as s3.
2009-03-01 19:55:46 +01:00
Jelmer Vernooij
9ffb6d2d9e
Add allow_badcharcnv argument to all conversion function, for
...
consistency with Samba 3.
2009-03-01 06:33:40 +01:00
Stefan Metzmacher
2170a810ed
s4:pyregistry: fix crash bugs introduced by e5a6eadd82
...
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
2009-02-06 12:13:26 +01:00
Stefan Metzmacher
e5a6eadd82
s4:pyregistry: fix compiler warnings
...
metze
2009-02-05 17:48:14 +01:00
Stefan Metzmacher
4cb9ccd841
s4:lib/registry: fix c++ warnings
...
metze
2009-02-05 17:48:10 +01:00
Stefan Metzmacher
eb012dd212
s4:auth/credentials: the python bindings don't use swig anymore
...
metze
2009-02-02 15:16:09 +01:00
Stefan Metzmacher
0c3bc60a01
s4:lib/registry: s/new/nkey
...
metze
2009-02-02 13:09:18 +01:00
Günther Deschner
9361c73c2f
winreg: fix winreg_EnumValue callers.
...
Guenther
2009-01-16 00:28:46 +01:00
Jelmer Vernooij
ba5d6e6d70
Avoid using a utility header for Python replacements included in Samba,
...
since this will not be shipped with talloc/tdb/tevent/etc.
2009-01-08 12:20:20 +01:00
Tim Prouty
61a23c5eea
s3/s4 build: Fix Py_RETURN_NONE to work with python versions < 2.4
2009-01-07 15:03:16 -08:00
Jelmer Vernooij
d2c70d24e1
py: Properly increase the reference counter of Py_None.
2009-01-06 04:13:57 +01:00
scudette@gmail.com
793f1cdbd9
Changed code to use proper talloc context instead of NULL to control memory leak.
2009-01-02 20:55:20 +01:00
scudette@gmail.com
cc9771d3da
Memory leak fixed due to accumulation of open reg keys.
2009-01-02 20:55:20 +01:00
scudette@gmail.com
de58ef45ac
Fixes uninitialised access as reported by valgrind.
2009-01-02 20:55:20 +01:00
Stefan Metzmacher
54c0f626f5
s4:pyregistry: use tevent_context_init()
...
metze
2009-01-02 18:16:48 +01:00
Stefan Metzmacher
183c379fe5
s4:lib/tevent: rename structs
...
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
2008-12-29 20:46:40 +01:00
Jelmer Vernooij
d58270c537
Add header for pyparam.
2008-12-22 04:38:57 +01:00
Jelmer Vernooij
2e7a6cb6bf
py: Fix initialisation of subtypes, fix segfaults.
2008-12-21 03:08:14 +01:00
Jelmer Vernooij
61a2d5c878
Use plain Python C API for registry module, rather than SWIG.
2008-12-18 16:49:33 +00:00
Jelmer Vernooij
0c0b9c738f
Start converting registry python module to plain C rather than SWIG.
2008-12-16 21:51:01 +01:00
Stefan Metzmacher
45cf68ce8f
s4:torture: fix the build with auto dependencies
...
metze
2008-11-16 16:21:25 +01:00
Jelmer Vernooij
a1cc278142
Remove use of global_loadparm during initialization of gensec.
2008-11-02 17:04:22 +01:00
Jelmer Vernooij
c9f69f1436
Fix installation of Samba 4 during merged build.
2008-10-30 23:19:51 +01:00
Jelmer Vernooij
23302413b3
Remove unused include param/param.h.
2008-10-24 16:37:56 +02:00
Jelmer Vernooij
a803525863
Regenerate SWIG files.
2008-10-24 15:30:43 +02:00
Jelmer Vernooij
27dce768d3
Remove more usages of global_loadparm.
2008-10-24 14:57:03 +02:00
Jelmer Vernooij
56a0b035c6
Remove more uses of global_loadparm.
2008-10-24 14:31:16 +02:00
Jelmer Vernooij
37d885c51a
Remove iconv_convenience argument from convert_string{,talloc}() but
...
make them wrappers around convert_string{,talloc}_convenience().
2008-10-24 14:26:46 +02:00
Jelmer Vernooij
fdf0d9bbb8
Fix double free.
2008-10-21 15:51:04 +02:00
Jelmer Vernooij
19aec78aec
Fix the build.
2008-10-21 15:47:34 +02:00
Jelmer Vernooij
d4d4a9da83
Revert "Registry server LDB backend: Don't make copies of the same type"
...
The original data pointer may go away so we do want to make copies in
this case.
This reverts commit 625359b2e2
.
2008-10-21 14:57:41 +02:00
Jelmer Vernooij
5209a846a9
Merge branch 'master' of ssh://git.samba.org/data/git/samba into regsrv
...
Conflicts:
source4/lib/registry/ldb.c
source4/rpc_server/winreg/rpc_winreg.c
2008-10-21 14:51:13 +02:00
Matthias Dieter Wallnöfer
625359b2e2
Registry server LDB backend: Don't make copies of the same type
2008-10-21 14:40:42 +02:00
Matthias Dieter Wallnöfer
fcc93f68a0
Registry server LDB backend REG_BINARY type: Save it directly in LDB
...
With this patch the REG_BINARY type is saved directly in a LDB registry database rather than converted in a hex-string.
2008-10-21 14:40:42 +02:00
Matthias Dieter Wallnöfer
828b033345
Registry server LDB backend REG_SZ type: Always use UTF8 encoding
...
We should save data OS independent in the LDB files.
2008-10-21 14:40:42 +02:00
Matthias Dieter Wallnöfer
47868196b8
Registry server LDB backend REG_SZ type: Fix up the empty string problem
...
This fixes up the empty string problem in a better way without the need of changing the character conversion code.
2008-10-21 14:40:41 +02:00
Matthias Dieter Wallnöfer
f10227958b
Registry server: Fixes up the patch with "type" != NULL (used in "EnumValue" and "QueryValue")
...
This prevents the server to segfault if the input data type is NULL.
2008-10-21 14:40:41 +02:00
Matthias Dieter Wallnöfer
083785c091
Registry server "reg_ldb_unpack_value": Tests demonstrate that also "type" doesn't has to be NULL
2008-10-21 14:40:41 +02:00
Matthias Dieter Wallnöfer
c26cb44e03
Revert "Registry server "reg_ldb_unpack_value": Let "data" pointer be NULL"
...
This reverts commit 82f50ea69f3aece4ac654ffdfa627babd8aadc25.
Cause: Windows (2000) doesn't accept the "data" pointer set to NULL
2008-10-21 14:40:41 +02:00
Matthias Dieter Wallnöfer
b23c3c24c2
Registry server "reg_ldb_unpack_value": Let "data" pointer be NULL
...
Prevent segfaults in some client applications (e.g. regdiff)
2008-10-21 14:40:41 +02:00
Matthias Dieter Wallnöfer
ac4808c11f
Cleanups of server files
...
Cosmetic corrections
2008-10-21 14:40:41 +02:00