summaryrefslogtreecommitdiffstats
path: root/lib/util
Commit message (Collapse)AuthorAgeFilesLines
* lib/util/time.c - make the "strftime" output locale independant ("%c" is not)Matthias Dieter Wallnöfer2010-12-221-5/+4
| | | | So that it also works on Solaris.
* s4-dns: disable segfault handling in dlz_bind9Andrew Tridgell2010-12-212-2/+13
| | | | we don't want bind9 calling the Samba segv handler
* lib/util/asn1.c - remove the "const" specifier from OIDMatthias Dieter Wallnöfer2010-12-213-13/+14
| | | | There is no reason to have it "const" since it's an allocated thing.
* lib: Protect against tevent nterror mismatchesVolker Lendecke2010-12-201-3/+23
| | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Mon Dec 20 00:12:02 CET 2010 on sn-devel-104
* util_net: fix a comment typo in interpret_string_addr_internal()Michael Adam2010-12-171-1/+1
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* build: fix bad syntaxMatthieu Patou2010-12-141-1/+1
| | | | | Autobuild-User: Matthieu Patou <mat@samba.org> Autobuild-Date: Tue Dec 14 20:55:17 CET 2010 on sn-devel-104
* s4-smbtorture: Make test names lowercase and dot-separated.Jelmer Vernooij2010-12-1112-14/+13
| | | | | | | | This is consistent with the test names used by selftest, should make the names less confusing and easier to integrate with other tools. Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Sat Dec 11 04:16:13 CET 2010 on sn-devel-104
* build: finishing fixing broken libiconv on hpuxMatthieu Patou2010-12-101-0/+2
|
* build: Cope with broken libiconvMatthieu Patou2010-12-081-1/+5
| | | | | | | | library iconv needs mbrtowc but some system didn't provide it (ie. HP-UX 11.0) Autobuild-User: Matthieu Patou <mat@samba.org> Autobuild-Date: Wed Dec 8 23:19:19 CET 2010 on sn-devel-104
* s4-pkgconfig: add @LIB_RPATH@ to our link flagsAndrew Tridgell2010-12-081-1/+1
| | | | | | | | this is only set when rpath is used on install. It ensures that applications that link against Samba libraries get the rpath right Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Wed Dec 8 12:46:00 CET 2010 on sn-devel-104
* Revert "lib/util:tests/time.c - "test_timestring" - fix it on Solaris"Matthias Dieter Wallnöfer2010-12-061-5/+2
| | | | | | | | This reverts commit 654e0102ddb0acaaf45fb55c15818722235fcc9f. This should better be handled by the replace library. Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org> Autobuild-Date: Mon Dec 6 12:17:31 CET 2010 on sn-devel-104
* lib/util/fault.c - fix "pid_t" printf warning on SolarisMatthias Dieter Wallnöfer2010-12-061-1/+1
| | | | | According to "http://www.ibm.com/developerworks/linux/library/l-solar/" it's generally a 32bit "int" - therefore this cast should fit.
* idtree: fix overflow for v. large ids on allocation and removalRusty Russell2010-12-061-1/+1
| | | | | | | | | | | | | Chris Cowan tracked down a SEGV in sub_alloc: idp->level can actually be equal to 7 (MAX_LEVEL) there, as it can be in sub_remove. (We unfairly blamed a shift of a signed var for this crash in commit 2db1987f5a3a). Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> Autobuild-User: Rusty Russell <rusty@rustcorp.com.au> Autobuild-Date: Mon Dec 6 05:02:22 CET 2010 on sn-devel-104
* lib/util:tests/time.c - "test_timestring" - fix it on SolarisMatthias Dieter Wallnöfer2010-12-051-3/+5
| | | | | | | | Solaris returns "Thu Jan 01" and not "Thu Jan 1" - therefore proof for both. Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org> Autobuild-Date: Sun Dec 5 23:09:13 CET 2010 on sn-devel-104
* Fix bug #3185 - testparm exits 0 if it can read the config file regardless ↵Holger Hetterich2010-12-041-1/+1
| | | | | | | of errors Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Sat Dec 4 02:30:00 CET 2010 on sn-devel-104
* lib/debug Add clarifying commentsAndrew Bartlett2010-11-241-2/+2
|
* waf:lib/util - add missing dependency on tallocMatthias Dieter Wallnöfer2010-11-201-1/+1
| | | | | Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org> Autobuild-Date: Sat Nov 20 23:35:48 CET 2010 on sn-devel-104
* Add attribute macros for Heimdal to useAndrew Bartlett2010-11-151-0/+12
| | | | | | | | Heimdal uses HEIMDAL_NORETURN_ATTRIBUTE and HEIMDAL_PRINTF_ATTRIBUTE, and we need to provide a link between these and Samba's function attribute handling. Andrew Bartlett
* unix_privs: Add missing dependency on libreplace.Jelmer Vernooij2010-11-121-0/+1
|
* debug: fixed default debug settingsAndrew Tridgell2010-11-042-1/+7
| | | | | | | | | this fixes -d in our command line tools (eg. samba-tool) Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org> Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Thu Nov 4 01:48:15 UTC 2010 on sn-devel-104
* lib/util/charset/charconv: clarify comments in next_codepoint_convenience_ext()Michael Adam2010-11-031-5/+8
| | | | | Give the unicod U+<hexnumber> notation of the codepoints referred to in the comments. Also reformat the comments some.
* lib/util/charset/util_unistr: clarify the comment header for strlen_m().Michael Adam2010-11-031-5/+6
|
* lib/util/charset/util_unistr: add strlen_m_ext_term() - variant of ↵Michael Adam2010-11-032-0/+12
| | | | strlen_m_ext() counting terminator
* lib/util/charset/util_unistr: add strlen_m_ext that takes input and output ↵Michael Adam2010-11-032-10/+51
| | | | | | | | | charset The function calculates the number of units (8 or 16-bit, depending on the destination charset), that would be needed to convert the input string which is expected to be in in src_charset encoding to the dst_charset (which should be a unicode charset).
* lib/charcnv/util_unistr: add next_codepoint_ext() that accepts input charset.Michael Adam2010-11-032-0/+8
| | | | | | | | | | next_codepoint() takes as string in CH_UNIX encoding and returns the unicode codepoint of the next (possibly multibyte) character of the input string. The new next_codepoint_ext() function adds the encoding of the input string as a parameter. next_codepoint() now only calls next_codepoint_ext() with CH_UNIX als src_charset argument.
* lib/charset/charcnv: rename a parameter of next_codepoint_convenience_ext() ↵Michael Adam2010-11-031-5/+5
| | | | for clarity
* lib/charset/charcnv: add next_codepoint_convenience_ext() that accepts input ↵Michael Adam2010-11-032-11/+37
| | | | | | | | | | | | charset. next_codepoint_convenience() takes as string in CH_UNIX encoding and returns the unicode codepoint of the next (possibly multibyte) character of the input string. The new next_codepoint_convenience_ext() function adds the encoding of the input string as a parameter. next_codepoint_convenience() now only calls next_codepoint_convenience_ext() with CH_UNIX als src_charset argument.
* util/charset: remove a duplicate comment.Michael Adam2010-11-031-5/+0
| | | | This seems to have been copied twice from source3/ code.
* debug Explain the behaviour of setup_logging() more clearlyAndrew Bartlett2010-11-021-1/+7
|
* lib/debug Use vdprintf rather than manually allocateAndrew Bartlett2010-11-021-5/+1
| | | | | | | | | | This allows the system to use whatever buffers it wants for the string rather than assuming we need to malloc() it. Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Tue Nov 2 00:18:43 UTC 2010 on sn-devel-104
* lib/util Remove setup_logging_stdout()Andrew Bartlett2010-11-012-15/+1
| | | | | | | | This API is no longer required now that we don't attempt to build ndrdump with the s3 build system, and because the s3 debug system will soon have the same setup_logging() API. Andrew Bartlett
* build: check that if we provide -liconv we can build shared libsMatthieu Patou2010-10-311-0/+6
| | | | | | | | | On Solaris with sun studio compiling an executable with -liconv even if there is no libiconv.so or libiconv.a will work but not for a shared lib. This problem leads to build problem as the linker won't be able to find libiconv when building shared lib as liconv is wrongly specified
* s4: Remove the old perl/m4/make/mk-based build system.Jelmer Vernooij2010-10-319-464/+0
| | | | | | | | The new waf-based build system now has all the same functionality, and the old build system has been broken for quite some time. Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Sun Oct 31 02:01:44 UTC 2010 on sn-devel-104
* lib/util: remove useless ../lib/util/mutex.*Stefan Metzmacher2010-10-264-143/+2
| | | | | | | | | | Only the disabled process_thread.c registers uses the register fn, all other functions are not used anywhere. metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Tue Oct 26 23:29:46 UTC 2010 on sn-devel-104
* waf: Remove lib prefix from libraries manually.Jelmer Vernooij2010-10-261-1/+1
|
* ldb:gendb_* calls: support a "NULL" resultset parameterMatthias Dieter Wallnöfer2010-10-251-4/+5
| | | | | This is useful for "samdb_search_count" where only the amount of entries matters.
* Add dump_data_cb()Volker Lendecke2010-10-242-21/+48
|
* Add print_asc_cb()Volker Lendecke2010-10-242-3/+24
|
* s4: Rename LIBSAMBA-* to libsamba-*Jelmer Vernooij2010-10-241-1/+1
|
* s4: Rename UID_WRAPPER to uid_wrapper.Jelmer Vernooij2010-10-231-2/+1
| | | | Only link to uid_wrapper when it is enabled.
* s4: Rename WRAP_XATTR to wrap_xattr.Jelmer Vernooij2010-10-231-7/+7
|
* lib/util: Add tevent WERROR wrappersKai Blin2010-10-233-2/+126
| | | | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Sat Oct 23 07:35:28 UTC 2010 on sn-devel-104
* asn1_tests: Implement negative unit-tests for ber_write_OID_String()Kamen Mazdrashki2010-10-221-0/+22
|
* asn1: ber_write_OID_String() to be more picky about supplied OIDKamen Mazdrashki2010-10-221-0/+5
| | | | | | | Now function will check for invalid OID handling cases where: - sub-identifier has invalid characters (non-digit) - 'dot' separator found on unexpected place. For instance '.' at start or end of the OID. Two '.' in a row.
* lib: make WRAP_XATTR a private libraryAndrew Tridgell2010-10-211-6/+7
| | | | Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-waf: removed the XATTR and SASL aliasesAndrew Tridgell2010-10-211-1/+1
| | | | | | these were hangovers from the old build system names Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4:lib/util/charset/iconv.c - remove a distinction which can never happenMatthias Dieter Wallnöfer2010-10-211-4/+1
| | | | | "ret->cd_direct" is never set before. It is set in the "if" upperwards but then the function is terminated with "return".
* s3: Don't use talloc_autofree_context in map_fileVolker Lendecke2010-10-201-1/+1
|
* asn1_tests.c: Make test data static constKamen Mazdrashki2010-10-201-6/+6
|
* lib/util/asn1.c: comment spellingKamen Mazdrashki2010-10-201-1/+1
|