summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* 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
* fixed the buildAndrew Tridgell2009-11-181-0/+4
| | | | | | whoever pushed 15d93a5d8e21893e1cca5c989dbf97010aae1622, please check that what you push compiles and passes tests. In this case it didn't compile.
* s4/torture: add a new ulong parameteric torture optionAravind Srinivasan2009-11-171-0/+8
|
* Attempt to fix the s4 build -- we can not use map_nt_error_from_unix in lib/Volker Lendecke2009-11-142-25/+0
|
* Introduce tevent_req_poll_ntstatusVolker Lendecke2009-11-142-0/+25
|
* Introduce tevent_req_simple_finish_ntstatusVolker Lendecke2009-11-142-0/+22
|
* util: str_list_unique() bugfixKamen Mazdrashki2009-11-131-1/+1
| | | | | | j is actually the index of the last element in the list size of the list though is j+1 <- to make room for the terminating NULL element
* util: str_list_unique_2() test implementationKamen Mazdrashki2009-11-131-0/+33
| | | | | | | | Difference with previous test for str_list_unique() is that this test allows number of elements and number of duplicates to be supplied on command line using --option="list_unique:count=47" --option="list_unique:dups=7"
* lib/util Split data_blob_hex_string() into upper and lowerAndrew Bartlett2009-11-123-3/+26
| | | | | | | | | | | | 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
* tdb: Fix a C++ warningVolker Lendecke2009-11-081-1/+2
|
* lib/util Fix comments in rfc1738.c.Andrew Bartlett2009-11-041-3/+3
| | | | | | The Samba version does not use static buffers Andrew Bartlett
* tsocket: rewrite tsocket_guide.txt to reflect the current APIsStefan Metzmacher2009-11-031-467/+413
| | | | metze
* tsocket_bsd: return -1 and set errno to ENAMETOOLONG if the unix path is too ↵Stefan Metzmacher2009-11-031-1/+6
| | | | | | long metze
* tsocket: remove prototype of non-existing tsocket_address_inet_set_broadcast()Stefan Metzmacher2009-11-031-2/+0
| | | | metze
* lib/util Use rfc1738.c from Squid for all our URL encode/decode needs.Andrew Bartlett2009-11-024-69/+71
| | | | Andrew Bartlett
* lib/util Add rfc1738 escape/unescape code from SquidAndrew Bartlett2009-11-021-0/+209
| | | | | | | | This is intended to replace our rfc1738_unescape(), and give us an rfc1738_escape implementation (and hopefully is better tested and more secure). Andrew Bartlett
* tdb: update README a bitKirill Smelkov2009-10-291-8/+1
| | | | | | | | | | | | | | While studying tdb, I've noticed a couple of mismatches between readme and actual code: - tdb_open_ex changed it's log_fn argument to log_ctx - there is now no tdb_update(), which it seems was transformed into non-exported tdb_update_hash() There were other mismatches, but I don't remember them now, sorry. Signed-off-by: Kirill Smelkov <kirr@mns.spb.ru> Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* tdb: add tests for double .close() in pytdbKirill Smelkov2009-10-291-0/+9
| | | | | | | | | | | | | | | | | | | | | | | The reason I do it is that when using older python-tdb as shipped in Debian Lenny, python interpreter crashes on this test: (gdb) bt #0 0xb7f8c424 in __kernel_vsyscall () #1 0xb7df5640 in raise () from /lib/i686/cmov/libc.so.6 #2 0xb7df7018 in abort () from /lib/i686/cmov/libc.so.6 #3 0xb7e3234d in __libc_message () from /lib/i686/cmov/libc.so.6 #4 0xb7e38624 in malloc_printerr () from /lib/i686/cmov/libc.so.6 #5 0xb7e3a826 in free () from /lib/i686/cmov/libc.so.6 #6 0xb7b39c84 in tdb_close () from /usr/lib/libtdb.so.1 #7 0xb7b43e14 in ?? () from /var/lib/python-support/python2.5/_tdb.so #8 0x0a038d08 in ?? () #9 0x00000000 in ?? () master's pytdb does not (we have a check for self->closed in obj_close()), but still... Signed-off-by: Kirill Smelkov <kirr@mns.spb.ru> Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* tdb: reset tdb->fd to -1 in tdb_close()Kirill Smelkov2009-10-291-1/+3
| | | | | | | | So that erroneous double tdb_close() calls do not try to close() same fd again. This is like SAFE_FREE() but for fd. Signed-off-by: Kirill Smelkov <kirr@mns.spb.ru> Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* tdb: fix typo in python's Tdb.get() docstringKirill Smelkov2009-10-291-1/+1
| | | | | | | It's Tdb.get(), not Tdb.fetch(). Signed-off-by: Kirill Smelkov <kirr@mns.spb.ru> Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* tdb: kill last bits from swigKirill Smelkov2009-10-292-6/+1
| | | | | | | | We no longer use swig for pytdb, so there is no need for swig make rules. Also pytdb.c header should be updated. Signed-off-by: Kirill Smelkov <kirr@mns.spb.ru> Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* tdb: detect tdb store of identical records and skipAndrew Tridgell2009-10-251-0/+20
| | | | This can help with ldb where we rewrite the index records
* tdb: rename 'struct list_struct' into 'struct tdb_record'Stefan Metzmacher2009-10-239-54/+54
| | | | metze
* util:ldb Allow multiple entries to be added in one LDIF snippitAndrew Bartlett2009-10-231-4/+7
|
* util: fixed place where we could look one byte past end of stringAndrew Tridgell2009-10-221-1/+1
| | | | We need to check the length before the value
* lib/tdb: make tdbtool use tdb_check() for "check" commandRusty Russell2009-10-221-14/+30
| | | | | | | Also, set logging function so we get more informative messages. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* lib/tdb: add tdb_check()Rusty Russell2009-10-228-3/+441
| | | | | | | | ctdb wants a quick way to detect corrupt tdbs; particularly, tdbs with loops in their hash chains. tdb_check() provides this. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* lib/tdb: add -t (always use transactions) option to tdbtortureRusty Russell2009-10-221-12/+29
| | | | | | | This means you can kill it at any time and expect no corruption. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* lib/tdb: wean off TDB_ERRCODE.Rusty Russell2009-10-229-40/+59
| | | | | | | | | | It was a regrettable hack which I used to reduce line count in tdb; in fact it caused confusion as can be seen in this patch. In particular, ecode now needs to be set before TDB_LOG anyway, and having it exposed in the header is useless (the struct tdb_context isn't defined, so it's doubly useless). Also, we should never set errno, as io.c was doing. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* lib/tdb: TDB_TRACE support (for developers)Rusty Russell2009-10-227-55/+402
| | | | | | | | | | | | | When TDB_TRACE is defined (in tdb_private.h), verbose tracing of tdb operations is enabled. This can be replayed using "replay_trace" from http://ccan.ozlabs.org/info/tdb. The majority of this patch comes from moving internal functions to _<funcname> to avoid double-tracing. There should be no additional overhead for the normal (!TDB_TRACE) case. Note that the verbose traces compress really well with rzip. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* lib-util: check for too many combinations in generate_unique_strs()Andrew Tridgell2009-10-201-1/+10
|
* tdb: fixed the intermittent failure of tdbtorture in the build farmAndrew Tridgell2009-10-201-2/+5
| | | | | | | | There was a race condition that caused the torture.tdb to be left in a state that needed recovery. The torture code thought that any message from the tdb code was an error, so the "recovered" message, which is a TDB_DEBUG_TRACE message, marked the run as being an error when it isn't.
* util: fixed generate_unique_strs() to be portableAndrew Tridgell2009-10-191-31/+13
| | | | | | 'place' was going negative, and giving undefined results. The result was duplicate names which gave errors in SMB2-DIR on PPC and other systems.
* s4/asn1: Use explicite TALLOC_CTX in ber_write_OID functionsKamen Mazdrashki2009-10-163-16/+16
|
* talloc: Fix exports and increment talloc versiontalloc-2.0.1Simo Sorce2009-10-143-37/+40
|
* talloc: Make abi checks in release scriptSimo Sorce2009-10-141-0/+10
| | | | | Make always sure the exports and signature files are up to date before shipping a release.
* talloc: Move release script under /script tooSimo Sorce2009-10-141-0/+0
|
* talloc: Change the way mksysms workSimo Sorce2009-10-143-36/+29
| | | | | | | | Make sure we always have a sorted (per file) export file. This way we can directly compare the real export and the check file w/o having to further sort things. Also return error code from abi_checks.sh if warnings were reported
* Fix builds with external tdbSimo Sorce2009-10-111-1/+1
| | | | | | Make sure we do not reference our internal tdb directly. Let configure define what tdb.h file to use so that builds that use an extrenal tdb do not include 2 different versions of the tdb header.
* Fix builds with external tallocSimo Sorce2009-10-091-1/+1
| | | | | | Make sure we do not reference our internal talloc directly. Let configure define what talloc.h file to use so that builds that use an extrenal talloc do not include 2 different versions of the talloc header.
* asn1_tests: Fix typo in comment.Karolin Seeger2009-10-091-2/+2
| | | | Karolin
* tdr: teach TDR about uint1632 enumsAndrew Tridgell2009-10-071-0/+10
| | | | | TDB doesn't have NDR64, but it needs to know how to map the new types from pidl
* lib/tdr: get rid of build warning when using TDR_ALLOC macro.Günther Deschner2009-10-051-1/+1
| | | | Guenther