Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2010-02-17 | util: added samba_runcmd() | Andrew Tridgell | 3 | -0/+275 | |
This allows us to run a child command in an async fashion, with control over logging of stdout and stderr (which appears in the Samba log file). This is useful for ensuring we don't miss important messages from rndc commands (for example). Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org> | |||||
2010-02-16 | s4-dsdb: removed gendb_search_single_extended_dn() | Andrew Tridgell | 2 | -105/+0 | |
Use dsdb_search_one() instead, which allows for arbitrary controls Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org> | |||||
2010-02-14 | lib: use TYPESAFE_QSORT() in lib/ and libcli/ | Andrew Tridgell | 1 | -1/+2 | |
2010-02-14 | s4-ldb: use TYPESAFE_QSORT() in the rest of the ldb code | Andrew Tridgell | 1 | -1/+3 | |
2010-02-13 | use ZERO_STRUCT | Volker Lendecke | 1 | -1/+2 | |
2010-02-13 | Use ZERO_STRUCTP | Volker Lendecke | 1 | -1/+1 | |
2010-02-13 | s3: Fix a typo | Volker Lendecke | 1 | -1/+1 | |
2010-02-13 | util: added TYPESAFE_QSORT() macro | Andrew Tridgell | 1 | -0/+38 | |
This makes it much harder to get the type of a qsort comparison function wrong. | |||||
2010-02-12 | s3: Add tdb_data_equal | Volker Lendecke | 2 | -0/+9 | |
2010-02-11 | util: added file_compare() utility function | Andrew Tridgell | 2 | -0/+27 | |
file_compare() returns true if two files are the same. It is meant for small files. Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org> | |||||
2010-02-10 | test:local added LOCAL-DLINKLIST testsuite | Andrew Tridgell | 1 | -0/+130 | |
(cherry picked from commit 95a5bee2c30a67a35604b0456ab7836f6dc67702) | |||||
2010-02-10 | util: rewrite dlinklist.h so that DLIST_ADD_END() is O(1) | Andrew Tridgell | 1 | -59/+111 | |
This changes the meaning of the ->prev pointer in our doubly linked lists to point at the end of the list from the front of the list. That allows us to implement DLIST_ADD_END() and related functions in O(1) time, which can be a huge saving in many places in Samba. This also means that the 'type' argument to various DLIST_*() macros is no longer needed, but I have left it in for now to keep the patchset small, which will make it easier to revert if any problems are found. In the future we should remove the 'type' arguments. (jra. Move the one use of DLIST_TAIL over to the new macros). | |||||
2010-02-10 | Temporary changes to dlinklist to keep the implementation static whilst | Jeremy Allison | 1 | -0/+16 | |
uses of (list)->prev are moved over to DLIST_PREV. This will be replaced when the final (new) version of the dlinklist.h header is added. Jeremy. | |||||
2010-02-05 | s4:UID wrapper - Fix includes | Matthias Dieter Wallnöfer | 2 | -1/+19 | |
The includes of the UID wrapper headers werent't really efficient according to metze's post on the technical mailing list (http://lists.samba.org/archive/samba-technical/2010-February/069165.html). To achieve this move the "uid_wrapper.h" includes into "lib/util/unix_privs.c", "lib/util/util.c", "ntvfs/posix/pvfs_acl.c" and "ntvfs/unixuid/vfs_unixuid.c". | |||||
2010-02-02 | Change uint_t to unsigned int in lib/util | Matt Kraai | 4 | -6/+6 | |
Signed-off-by: Stefan Metzmacher <metze@samba.org> | |||||
2010-01-29 | lib/util: remove data_blob_talloc_reference() | Stefan Metzmacher | 2 | -23/+0 | |
We want to avoid the usage of talloc_reference() in Samba. metze | |||||
2010-01-09 | s4-debug: removed debug_ctx(). It didn't catch on :-) | Andrew Tridgell | 1 | -4/+0 | |
There was only one user, which isn't worth it for the overhead. | |||||
2010-01-07 | lib/util: move TIME_T_MIN/MAX defines into header file | Björn Jacke | 2 | -14/+14 | |
2009-12-18 | Return NULL in strlower_talloc if src is NULL | Brendan Powers | 1 | -0/+4 | |
Prevents strlower_talloc from segfaulting if you pass it a NULL string. Signed-off-by: Andrew Bartlett <abartlet@samba.org> | |||||
2009-12-10 | util: added binsearch.h for binary array searches | Andrew Tridgell | 1 | -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. | |||||
2009-12-01 | util/util_strlist - add a call "const_str_list" for making "unconst" lists ↵ | Matthias Dieter Wallnöfer | 2 | -0/+14 | |
"const" | |||||
2009-11-20 | charset/tests/iconv - Remove the "const" from "ptr_in" to prevent ↵ | Matthias Dieter Wallnöfer | 1 | -7/+7 | |
"discard_const_p" use Signed-off-by: Stefan Metzmacher <metze@samba.org> | |||||
2009-11-20 | util/strlist: Fix up "const" warnings in the string list and test code | Matthias Dieter Wallnöfer | 3 | -26/+30 | |
This work I did using suggestions by Jelmer. Signed-off-by: Stefan Metzmacher <metze@samba.org> | |||||
2009-11-14 | Attempt to fix the s4 build -- we can not use map_nt_error_from_unix in lib/ | Volker Lendecke | 2 | -25/+0 | |
2009-11-14 | Introduce tevent_req_poll_ntstatus | Volker Lendecke | 2 | -0/+25 | |
2009-11-14 | Introduce tevent_req_simple_finish_ntstatus | Volker Lendecke | 2 | -0/+22 | |
2009-11-13 | util: str_list_unique() bugfix | Kamen Mazdrashki | 1 | -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 | |||||
2009-11-13 | util: str_list_unique_2() test implementation | Kamen Mazdrashki | 1 | -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" | |||||
2009-11-12 | lib/util Split data_blob_hex_string() into upper and lower | Andrew Bartlett | 3 | -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 | |||||
2009-11-04 | lib/util Fix comments in rfc1738.c. | Andrew Bartlett | 1 | -3/+3 | |
The Samba version does not use static buffers Andrew Bartlett | |||||
2009-11-02 | lib/util Use rfc1738.c from Squid for all our URL encode/decode needs. | Andrew Bartlett | 4 | -69/+71 | |
Andrew Bartlett | |||||
2009-11-02 | lib/util Add rfc1738 escape/unescape code from Squid | Andrew Bartlett | 1 | -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 | |||||
2009-10-23 | util:ldb Allow multiple entries to be added in one LDIF snippit | Andrew Bartlett | 1 | -4/+7 | |
2009-10-22 | util: fixed place where we could look one byte past end of string | Andrew Tridgell | 1 | -1/+1 | |
We need to check the length before the value | |||||
2009-10-20 | lib-util: check for too many combinations in generate_unique_strs() | Andrew Tridgell | 1 | -1/+10 | |
2009-10-19 | util: fixed generate_unique_strs() to be portable | Andrew Tridgell | 1 | -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. | |||||
2009-10-16 | s4/asn1: Use explicite TALLOC_CTX in ber_write_OID functions | Kamen Mazdrashki | 3 | -16/+16 | |
2009-10-11 | Fix builds with external tdb | Simo Sorce | 1 | -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. | |||||
2009-10-09 | Fix builds with external talloc | Simo Sorce | 1 | -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. | |||||
2009-10-09 | asn1_tests: Fix typo in comment. | Karolin Seeger | 1 | -2/+2 | |
Karolin | |||||
2009-10-01 | s4/asn1: ber_read_OID_String() to be based on _ber_read_OID_String_impl() | Kamen Mazdrashki | 1 | -30/+3 | |
2009-10-01 | s4/asn1: local TALLOC_CTX should be child of torture_context | Kamen Mazdrashki | 1 | -2/+2 | |
2009-10-01 | s4/asn1: fixed typo in torture messages | Kamen Mazdrashki | 1 | -2/+2 | |
2009-10-01 | s4/asn1: Added test for ber_read_partial_OID_String() | Kamen Mazdrashki | 1 | -0/+45 | |
2009-10-01 | s4/asn1: Added test for ber_read_OID_String() | Kamen Mazdrashki | 1 | -0/+32 | |
2009-10-01 | s4/asn1: Added test for ber_write_partial_OID_String() | Kamen Mazdrashki | 1 | -0/+74 | |
2009-10-01 | s4/asn1: Added test for ber_write_OID_String() | Kamen Mazdrashki | 1 | -0/+74 | |
2009-10-01 | s4/asn1: Added torture suite for ASN1 | Kamen Mazdrashki | 1 | -0/+35 | |
2009-10-01 | util: strhex_to_str() fixed to handle '0x' correctly | Kamen Mazdrashki | 1 | -6/+6 | |
2009-10-01 | util: fixed compile time "discards qualifiers" warning | Kamen Mazdrashki | 1 | -3/+3 | |