summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* 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
|
* pytevent: Fill in client side fnuctions.Jelmer Vernooij2010-09-251-52/+393
|
* tevent: Add infrastructure for python bindings.Jelmer Vernooij2010-09-252-1/+418
|
* tevent: Switch to using waf by default.Jelmer Vernooij2010-09-252-14/+15
|
* talloc: Add a warning about talloc_autofree_context() and dlclose()Volker Lendecke2010-09-242-0/+22
|
* tdb: add restoreVolker Lendecke2010-09-235-2/+310
| | | | Based on an idea by Simon McVittie, largely rewritten
* torture: Remove unused variable.Jelmer Vernooij2010-09-231-1/+0
|
* lib-subunit: fixed build on systems without subunit devel libraryAndrew Tridgell2010-09-231-4/+2
| | | | Pair-Programmed-With: Jelmer Vernooij <jelmer@samba.org>
* smbtorture: Report times.Jelmer Vernooij2010-09-223-5/+39
|
* torture: Use system subunit library if available.Jelmer Vernooij2010-09-222-1/+14
|
* smbtorture: Use subunit C library.Jelmer Vernooij2010-09-222-28/+27
|
* libreplace: fix endless strerror_r has been redefined warnings on AIXBjörn Jacke2010-09-221-0/+1
|
* torture: Remove active_testname variable.Jelmer Vernooij2010-09-212-22/+1
|
* torture: Fix running individual tests.Jelmer Vernooij2010-09-213-28/+70
|
* strlist: Make test names unique.Jelmer Vernooij2010-09-211-2/+8
|
* tevent: include libreplace heade before tevent headerBjörn Jacke2010-09-211-1/+1
| | | | this is supposed to fix bug #7463. Thanks to Joachim Schmitz.
* pytalloc: Add default compare function.Jelmer Vernooij2010-09-212-1/+15
|
* pidl: Fix segfault when accessing unicode objects.Jelmer Vernooij2010-09-202-11/+0
|
* lib/tdb: fix c++ build warning in tdb_header_hash().Günther Deschner2010-09-201-1/+1
| | | | Guenther
* s3: Fix the charset_pull routine (bug 7531)Volker Lendecke2010-09-191-1/+1
| | | | In the push routine we do the SVAL, so we should do the SSVAL here.
* testtools: Import newer upstream revision.Jelmer Vernooij2010-09-194-37/+78
| | | | This fixes (among other things) a warning during 'make test' on systems with Python 2.6.
* pytdb: Make filename argument optional.Jelmer Vernooij2010-09-192-13/+15
|
* pytdb: Add support for tdb_freelist_size()Kirill Smelkov2010-09-192-0/+9
| | | | | | 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 support for tdb_transaction_prepare_commit()Kirill Smelkov2010-09-192-0/+18
| | | | | | 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 support for tdb_enable_seqnum, tdb_get_seqnum and ↵Kirill Smelkov2010-09-192-0/+30
| | | | | | | | tdb_increment_seqnum_nonblock Cc: 597386@bugs.debian.org Signed-off-by: Kirill Smelkov <kirr@landau.phys.spbu.ru> Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
* pytdb: Update open flags to match those for tdb_open() in tdb.hKirill Smelkov2010-09-191-0/+6
| | | | | | | | | Namely TDB_NOSYNC, TDB_SEQNUM, TDB_VOLATILE, TDB_ALLOW_NESTING and TDB_DISALLOW_NESTING were missing. Cc: 597386@bugs.debian.org Signed-off-by: Kirill Smelkov <kirr@mns.spb.ru> Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
* pytdb: Fix repr segfault for internal dbKirill Smelkov2010-09-192-1/+11
| | | | | | | | | | | | | | | The problem was tdb->name is NULL for TDB_INTERNAL databases, and so it was crashing ... #0 0xb76944f3 in strlen () from /lib/i686/cmov/libc.so.6 #1 0x0809862b in PyString_FromFormatV (format=0xb72b6a26 "Tdb('%s')", vargs=0xbfc26a94 "") at ../Objects/stringobject.c:211 #2 0x08098888 in PyString_FromFormat (format=0xb72b6a26 "Tdb('%s')") at ../Objects/stringobject.c:358 #3 0xb72b65f2 in tdb_object_repr (self=0xb759e060) at ./pytdb.c:439 Cc: 597089@bugs.debian.org Signed-off-by: Kirill Smelkov <kirr@mns.spb.ru> Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
* pytdb: Add support for tdb_add_flags() & tdb_remove_flags()Kirill Smelkov2010-09-192-0/+27
| | | | | | | | | Note, unlike tdb_open where flags is `int', tdb_{add,remove}_flags want flags as `unsigned', so instead of "i" I used "I" in PyArg_ParseTuple. Cc: 597386@bugs.debian.org Signed-off-by: Kirill Smelkov <kirr@mns.spb.ru> Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
* lib/util: usec_time_diff takes arguments the other way round than TvalDiff didBjörn Jacke2010-09-171-1/+1
|
* s3/s4: merge msleep and smb_msleepBjörn Jacke2010-09-162-8/+43
| | | | | the merged variant is renamed to smb_msleep as some platforms already have a msleep function.
* tdb: added TDB_NO_FSYNC env variableAndrew Tridgell2010-09-161-0/+4
| | | | this might help reduce test times and load on test machines
* Fix a typoVolker Lendecke2010-09-151-1/+1
|
* tsocket: we return -1 on error, not fdAndrew Tridgell2010-09-151-7/+7
| | | | | | | | | | | | | | | | | | | | | the code used this pattent: if (fd < 0) { ...various cleanups... return fd; } it is much clearer to do this: if (fd < 0) { ...various cleanups... return -1; } as otherwise when reading the code you think this function may return a fd. Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* talloc: fixed spelling errors in commentAndrew Tridgell2010-09-151-2/+2
|
* Ensure incoming timespec values correctly wrap at nsecs.Jeremy Allison2010-09-141-0/+7
| | | | Jeremy.