summaryrefslogtreecommitdiff
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* tdb: fix an early release of the global lock that can cause data corruptionVolker Lendecke2010-02-011-5/+10
| | | | | | | | | | | | | | | | | | | There was a bug in tdb where the tdb_brlock(tdb, GLOBAL_LOCK, F_UNLCK, F_SETLKW, 0, 1); (ending the transaction-"mutex") was done before the /* remove the recovery marker */ This means that when a transaction is committed there is a window where another opener of the file sees the transaction marker while the transaction committer is still fully functional and working on it. This led to transaction being rolled back by that second opener of the file while transaction_commit() gave no error to the caller. This patch moves the F_UNLCK to after the recovery marker was removed, closing this window.
* lib/util: remove data_blob_talloc_reference()Stefan Metzmacher2010-01-292-23/+0
| | | | | | We want to avoid the usage of talloc_reference() in Samba. metze
* tsocket: Fix the description of tstream_writev_queue_send/recvKai Blin2010-01-281-6/+6
|
* tsocket: Fix description for tstream_readv_pdu_queue_send/recvKai Blin2010-01-281-7/+6
|
* Revert "libreplace: fix unused varibale warning on IRIX"Björn Jacke2010-01-261-2/+2
| | | | this one was broken
* libreplace: fix unused varibale warning on IRIXBjörn Jacke2010-01-261-2/+2
|
* lib/popt: Fix typo in README.Karolin Seeger2010-01-251-1/+1
| | | | Karolin
* libreplace: Fix a C++ warningVolker Lendecke2010-01-231-2/+2
|
* s4: Include Python.h early to avoid double definition errors.Jelmer Vernooij2010-01-211-0/+1
|
* Work around bad use of autoconf internaLars Müller2010-01-181-13/+37
| | | | | Merge fix made by Andreas Schwab <schwab@linux-m68k.org>. This change had been in use by SUSE since 2008-07-03.
* subunit/testtools: Include newer version.Jelmer Vernooij2010-01-1611-22/+205
|
* Import testtools as well, required for subunit.Jelmer Vernooij2010-01-1622-1/+3849
|
* subunit: Import new version.Jelmer Vernooij2010-01-1626-504/+4061
|
* Add README about subunit.Jelmer Vernooij2010-01-161-0/+7
|
* Add script for updating the copy of subunit.Jelmer Vernooij2010-01-161-0/+13
|
* tsocket: Added doxygen config file.Andreas Schneider2010-01-111-0/+1538
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* tsocket: Added complete doxygen documentation.Andreas Schneider2010-01-112-63/+834
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s4-debug: removed debug_ctx(). It didn't catch on :-)Andrew Tridgell2010-01-091-4/+0
| | | | There was only one user, which isn't worth it for the overhead.
* lib/util: move TIME_T_MIN/MAX defines into header fileBjörn Jacke2010-01-072-14/+14
|
* tdb: fix standalone 'make installdocs'Stefan Metzmacher2010-01-062-3/+4
| | | | metze
* tdb: create symbol links to shared libraries see ↵Brian Lu2010-01-061-0/+4
| | | | | | https://bugzilla.samba.org/show_bug.cgi?id=6991 for details Signed-off-by: Stefan Metzmacher <metze@samba.org>
* talloc: create symbol links to shared libraries see ↵Brian Lu2010-01-061-0/+5
| | | | | | https://bugzilla.samba.org/show_bug.cgi?id=6991 for details Signed-off-by: Stefan Metzmacher <metze@samba.org>
* tevent: create symbol links to shared libraries see ↵Brian Lu2010-01-061-0/+4
| | | | | | https://bugzilla.samba.org/show_bug.cgi?id=6991 for details Signed-off-by: Stefan Metzmacher <metze@samba.org>
* libreplace: some systems don't have memmem()Andrew Tridgell2010-01-024-0/+68
| | | | added rep_memmem() and a testsuite
* tsocket: only copy the specific part of sockaddr*Stefan Metzmacher2009-12-241-0/+5
| | | | | | | This makes sure we fill the unspefic bytes with 0 and have zero termination for sockaddr_un. metze
* tsocket: allow AF_UNIX sockaddrs smaller than sizeof(sockaddr_un)Stefan Metzmacher2009-12-241-4/+5
| | | | | | | This is needed as getpeername() truncates the length to 2 if the peer socket has no name. metze
* tdb: Also build and install tdb manpages from standalone tdb.Jelmer Vernooij2009-12-217-3/+459
|
* tdb: Fix formatting of API check file.Jelmer Vernooij2009-12-211-1/+1
|
* tevent: prefix types and defined with tevent_ and TEVENT_Stefan Metzmacher2009-12-201-37/+39
| | | | | | This fixes the build warnings on some build-farm hosts. metze
* Output %p as unsigned in snprintf replacement.Peter Rosin2009-12-191-0/+1
|
* Return NULL in strlower_talloc if src is NULLBrendan Powers2009-12-181-0/+4
| | | | | | Prevents strlower_talloc from segfaulting if you pass it a NULL string. Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* tdbtool: avoid using c++ reserved words.Günther Deschner2009-12-171-2/+2
| | | | Guenther
* tsocket: Fixed tsocket_guide.txt asciidoc syntax.Andreas Schneider2009-12-151-148/+161
|
* tsocket: Fixed documentation for tsocket_address_bsd_sockaddr().Andreas Schneider2009-12-151-6/+5
|
* tsocket: Fixed typo in LGPL header.Andreas Schneider2009-12-155-5/+5
|
* tsocket: add tsocket_address_bsd_sockaddr() and ↵Stefan Metzmacher2009-12-153-5/+87
| | | | | | tsocket_address_bsd_from_sockaddr() metze
* Fix release script to work with recent git versionsSimo Sorce2009-12-151-1/+1
|
* util: added binsearch.h for binary array searchesAndrew Tridgell2009-12-101-0/+68
| | | | | | This was moved from the schema_query code. It will now be used in more than one place, so best to make it a library macro. I think there are quite a few places that could benefit from this.
* tdr-test: Fix 'push_charset' testKamen Mazdrashki2009-12-081-1/+1
| | | | | | | 4 bytes of 'bloe' string are pushed, so we should check only for the first 4 caracters Signed-off-by: Andrew Tridgell <tridge@samba.org>
* talloc: Fix write behind memory blockKamen Mazdrashki2009-12-081-1/+1
| | | | | | | If ALWASY_REALLOC is defined and we are to 'shrink' memory block, memcpy() will write outside memory just allocated. Signed-off-by: Andrew Tridgell <tridge@samba.org>
* Fix release script with newer versins of gitSimo Sorce2009-12-071-1/+1
|
* util/util_strlist - add a call "const_str_list" for making "unconst" lists ↵Matthias Dieter Wallnöfer2009-12-012-0/+14
| | | | "const"
* tevent: Fix a commentVolker Lendecke2009-11-261-1/+1
|
* charset/tests/iconv - Remove the "const" from "ptr_in" to prevent ↵Matthias Dieter Wallnöfer2009-11-201-7/+7
| | | | | | "discard_const_p" use Signed-off-by: Stefan Metzmacher <metze@samba.org>
* tdb tools: Mostly cosmetic adaptionsMatthias Dieter Wallnöfer2009-11-202-8/+9
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* util/strlist: Fix up "const" warnings in the string list and test codeMatthias Dieter Wallnöfer2009-11-203-26/+30
| | | | | | This work I did using suggestions by Jelmer. Signed-off-by: Stefan Metzmacher <metze@samba.org>
* tdb: change version to 1.2.0 after adding TDB_*ALLOW_NESTINGtdb-1.2.0Stefan Metzmacher2009-11-201-1/+1
| | | | metze
* tdb: add TDB_DISALLOW_NESTING and make TDB_ALLOW_NESTING the default behaviorStefan Metzmacher2009-11-205-3/+63
| | | | | | | | | | We need to keep TDB_ALLOW_NESTING as default behavior, so that existing code continues to work. However we may change the default together with a major version number change in future. metze
* New attempt at TDB transaction nesting allow/disallow.Ronnie Sahlberg2009-11-202-1/+14
| | | | | | | | | | | Make the default be that transaction is not allowed and any attempt to create a nested transaction will fail with TDB_ERR_NESTING. If an application can cope with transaction nesting and the implicit semantics of tdb_transaction_commit(), it can enable transaction nesting by using the TDB_ALLOW_NESTING flag. (cherry picked from ctdb commit 3e49e41c21eb8c53084aa8cc7fd3557bdd8eb7b6) Signed-off-by: Stefan Metzmacher <metze@samba.org>
* tdb: always set tdb->tracefd to -1 to be safe on goto failStefan Metzmacher2009-11-201-4/+3
| | | | metze