summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* 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
* 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
|