summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* tdb: Bump version to 1.2.7 after addition of pytdb.__version__.Jelmer Vernooij2010-10-171-1/+1
| | | | | Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Sun Oct 17 18:23:16 UTC 2010 on sn-devel-104
* Revert "s4:remove "util_ldb" submodule and integrate the three gendb_* calls ↵Matthias Dieter Wallnöfer2010-10-173-0/+148
| | | | | | | | | | | | in "dsdb/common/util.c"" This reverts commit 8a2ce5c47cee499f90b125ebde83de5f9f1a9aa0. Jelmer pointed out that these are also in use by other LDB databases - not only SAMDB ones. Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org> Autobuild-Date: Sun Oct 17 13:37:16 UTC 2010 on sn-devel-104
* s4:remove "util_ldb" submodule and integrate the three gendb_* calls in ↵Matthias Dieter Wallnöfer2010-10-173-150/+0
| | | | | | | | | "dsdb/common/util.c" They're only in use by SAMDB code. Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org> Autobuild-Date: Sun Oct 17 09:40:13 UTC 2010 on sn-devel-104
* s4:lib/util/util_ldb.c - remove unused "gendb_add_ldif" callMatthias Dieter Wallnöfer2010-10-171-17/+0
|
* s4:"wrap_casefold" - move it to "ldb_wrap.c" since it's only used thereMatthias Dieter Wallnöfer2010-10-171-5/+0
|
* s4-torture: fixed uninitialised variable errorAndrew Tridgell2010-10-131-1/+1
| | | | ret is uninitialised if the directory is empty
* lib/debug Add DEBUGC and DEBUGADDC as dummiesAndrew Bartlett2010-10-121-0/+4
| | | | | | | This allows code that needs to also compile against the source3 debug code to compile in source4. Andrew Bartlett
* torture: Add debug on what we are removingMatthieu Patou2010-10-111-0/+1
|
* lib/torture: Add function to clean up the output directoryAndrew Bartlett2010-10-112-1/+66
| | | | | | | | | This helps to avoid leaving 85MB of provision around for every NET-API-BECOME-DC test. Andrew Bartlett Signed-off-by: Matthieu Patou <mat@matws.net>
* util: Fix installation path of tevent_ntstatus.h, tevent_unix.h (bug 7720).Jelmer Vernooij2010-10-111-0/+1
| | | | | Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Mon Oct 11 09:24:56 UTC 2010 on sn-devel-104
* libcli-auth: Remove unnecessary dependency on libsamba-hostconfig.Jelmer Vernooij2010-10-111-1/+1
|
* util: Link headers to correct subsystem, fix formatting.Jelmer Vernooij2010-10-101-12/+12
|
* socket_wrapper: Make it work on freebsd for udp packetsStefan Metzmacher2010-10-101-1/+11
| | | | | Autobuild-User: Matthieu Patou <mat@samba.org> Autobuild-Date: Sun Oct 10 12:57:00 UTC 2010 on sn-devel-104
* talloc: Fix #include line in manpage.Jelmer Vernooij2010-10-091-1/+1
| | | | | Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Sat Oct 9 13:53:25 UTC 2010 on sn-devel-104
* pytalloc: Fix warning that we are subtracting void* pointersKamen Mazdrashki2010-10-081-1/+1
| | | | | Autobuild-User: Kamen Mazdrashki <kamenim@samba.org> Autobuild-Date: Fri Oct 8 23:36:54 UTC 2010 on sn-devel-104
* tevent: Do not use talloc_autofree_contextVolker Lendecke2010-10-082-4/+3
|
* Move talloc_enable_null_tracking() to the s3 daemonsVolker Lendecke2010-10-081-7/+0
|
* waf: fixed exit status of test suitesAndrew Tridgell2010-10-072-4/+8
| | | | use RUN_COMMAND() to handle signal errors and exit status
* tevent: Only call handlers that ask for eventsVolker Lendecke2010-10-061-1/+1
| | | | | | | | | | The s3 libsmbclient puts two different handlers on a single fd for readability and writability. With select this works fine, however without this patch we unconditionally call the write handler even if the socket is only readable. We should have called the read handler instead. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Wed Oct 6 23:40:24 UTC 2010 on sn-devel-104
* idtree: fix right shift of signed ints, crash on large ids on AIXRusty Russell2010-10-061-1/+1
| | | | | | | | | | | | | | | | | Right-shifting signed integers in undefined; indeed it seems that on AIX with their compiler, doing a 30-bit shift on (INT_MAX-200) gives 0, not 1 as we might expect. The obvious fix is to make id and oid unsigned: l (level count) is also logically unsigned. (Note: Samba doesn't generally get to ids > 1 billion, but ctdb does) Reported-by: Chris Cowan <cc@us.ibm.com> Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> Autobuild-User: Rusty Russell <rusty@samba.org> Autobuild-Date: Wed Oct 6 08:31:09 UTC 2010 on sn-devel-104
* lib/util/asn1: let asn1_peek_full_tag() return an error if we fail to parse ↵Stefan Metzmacher2010-10-041-1/+13
| | | | | | | | | tag hdr/len metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Mon Oct 4 14:46:40 UTC 2010 on sn-devel-104
* tsocket: make sure we delete the fd event before calling close()Stefan Metzmacher2010-10-041-0/+1
| | | | | | | | | | | | | | We got random double free errors, when getting events from epoll_wait() and try to dereference the private talloc pointer attached to it. Before doing the close() in the tstream_disconnect_send() function we need to delete the fd event. commit 38f505530ba06323a56c7d3914630efffcd12629 only fixed it for tdgram sockets. metze
* tdb: Only use system pytdb when using system tdb.Jelmer Vernooij2010-10-041-2/+2
|
* tdb: Support using system pytdb.Jelmer Vernooij2010-10-041-8/+9
|
* pytdb: Add __version__ attribute.Jelmer Vernooij2010-10-043-1/+10
|
* pytdb: Include Python.h first to prevent warning.Jelmer Vernooij2010-10-021-1/+1
|
* pytdb: Check errors after PyObject_New() callsKirill Smelkov2010-10-021-0/+7
| | | | | | | | The call could fail with e.g. MemoryError, and we'll dereference NULL pointer without checking. Signed-off-by: Kirill Smelkov <kirr@landau.phys.spbu.ru> Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
* pytdb: Add support for tdb_repack()Kirill Smelkov2010-10-022-0/+15
| | | | | | Cc: 597386@bugs.debian.org Signed-off-by: Kirill Smelkov <kirr@landau.phys.spbu.ru> Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
* pytdb: Add TDB_INCOMPATIBLE_HASH open flagKirill Smelkov2010-10-021-0/+1
| | | | | | | | | | | In 2dcf76 Rusty added TDB_INCOMPATIBLE_HASH open flag which selects Jenkins lookup3 hash for new databases. Expose this flag to python users too. Cc: Rusty Russell <rusty@rustcorp.com.au> Signed-off-by: Kirill Smelkov <kirr@mns.spb.ru> Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
* s3: Fix a 64-bit BUGVolker Lendecke2010-10-021-1/+1
| | | | | | | | | | | | | | | Quick explanation why this is a problem: It is not safe to pass a pointer to a uint32_t into a routine that expects a size_t *. The routine that this pointer is passed to has no chance to find out that in reality it was passed a pointer to a uint32_t. On platforms where sizeof(size_t)==8, we get a nice overwrite of a stack area that should not be overwritten. As this happens over an over again: Does someone know a means to make gcc stop with an error in this case? Volker
* samba: share select wrappers.Günther Deschner2010-10-014-2/+242
| | | | Guenther
* subunit: Import new upstream snapshot (adds subunit_progress())Jelmer Vernooij2010-09-304-0/+80
|
* testtools: Import new upstream snapshot.Jelmer Vernooij2010-09-305-3/+49
|
* util: added BINARY_ARRAY_SEARCH_V()Andrew Tridgell2010-09-291-0/+16
| | | | this is used to search an array of values
* ldb/tevent: Fix detection of waf paths.Jelmer Vernooij2010-09-282-2/+11
|
* tevent: Remove make targets that are not relevant for tevent.Jelmer Vernooij2010-09-281-8/+0
|
* tevent: Don't update Makefile/configure files.Jelmer Vernooij2010-09-282-2/+12
|
* tsocket: make sure we delete the fd event before calling close()Stefan Metzmacher2010-09-281-0/+1
| | | | | | | | | | | | | | We got random double free errors, when getting events from epoll_wait() and try to dereference the private talloc pointer attached to it. Before doing the close() in the tstream_disconnect_send() function we need to delete the fd event. metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Tue Sep 28 01:02:55 UTC 2010 on sn-devel-104
* Remove talloc_autofree_context() from pm_processVolker Lendecke2010-09-271-1/+1
| | | | | This would be a classic for talloc_tos(), InFile is freed a few lines down. But unfortunately S4 does not support talloc_tos().
* Lift talloc_autofree_context() from OpenConfFile()Volker Lendecke2010-09-271-3/+3
|
* libsmbconf: parse an empty share as empty share, not as NULL.Michael Adam2010-09-271-5/+1
| | | | | | | | | This fixes a segfault in net conf import: Importing a text file with an empty share resulted in a segfault. Now this creates an empty share in registry config, just as it should. Thanks to Gregor Beck <gbeck@sernet.de> for reporting.
* lib/util: change tevent_req_nterror() to a macroStefan Metzmacher2010-09-272-3/+10
| | | | | | | | | | This way we can record where a tevent_req was finished by tevent_req_nterror(). metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Mon Sep 27 03:18:14 UTC 2010 on sn-devel-104
* tdb: fix non-WAF build, commit 1.2.6 ABI file.Rusty Russell2010-09-272-1/+62
| | | | | | Sorry Jeremy. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* tdb: TDB_INCOMPATIBLE_HASH, to allow safe changing of default hash.Rusty Russell2010-09-276-6/+23
| | | | | | | | | | | | | | | | This flag to tdb_open/tdb_open_ex effects creation of a new database: 1) Uses the Jenkins lookup3 hash instead of the old gdbm hash if none is specified, 2) Places a non-zero field in header->rwlocks, so older versions of TDB will refuse to open it. This means that the caller (ie Samba) can set this flag to safely change the hash function. Versions of TDB from this one on will either use the correct hash or refuse to open (if a different hash is specified). Older TDB versions will see the nonzero rwlocks field and refuse to open it under any conditions. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* tdb: automatically identify Jenkins hash tdbsRusty Russell2010-09-271-14/+27
| | | | | | | | | | If the caller to tdb_open_ex() doesn't specify a hash, and tdb_old_hash doesn't match, try tdb_jenkins_hash. This was Metze's idea: it makes life simpler, especially with the upcoming TDB_INCOMPATIBLE_HASH flag. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* tdb: add Bob Jenkins lookup3 hash as helper hash.Rusty Russell2010-09-277-18/+447
| | | | | | | | | | This is a better hash than the default: shipping it with tdb makes it easy for callers to use it as the hash by passing it to tdb_open_ex(). This version taken from CCAN and modified, which took it from http://www.burtleburtle.net/bob/c/lookup3.c. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* lib/util/asn1: add asn1_peek_tag_needed_size() and asn1_peek_full_tag()Stefan Metzmacher2010-09-262-0/+85
| | | | | | | We need a way to ask for the length of a tag without having the full buffer yet. metze
* pyteven: Fix build warnings.Jelmer Vernooij2010-09-251-6/+16
|
* Check in configure/Makefile for those projects that have waf as primary ↵Jelmer Vernooij2010-09-252-0/+71
| | | | build system.
* pytevent: Add more tests.Jelmer Vernooij2010-09-252-2/+81
|