summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* lib/socket: Remove outdated commentAndrew Bartlett2011-05-081-11/+0
| | | | The autoconf and waf tests for interfaces logic are in libreplace now.
* lib/socket move interfaces code to the top levelAndrew Bartlett2011-05-083-0/+365
|
* Improve debug messages when creating socket directoriesAndrew Bartlett2011-05-081-1/+2
| | | | | | This makes clear what the permissions error and directory name actually is Andrew Bartlett
* Fix Samba3 on OpenIndiana.Gordon Ross2011-05-071-1/+3
| | | | | | | | | | | I'd like Samba to use the native OpenLDAP and MIT Kerberos libs. Attached are some patches to do that. (relative to git master) It does not build for me without these. (OpenIndiana is an off-shoot of OpenSolaris See http://www.openindiana.org) Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Sat May 7 02:20:14 CEST 2011 on sn-devel-104
* tdb: fix a build warning.Günther Deschner2011-05-061-0/+1
| | | | Guenther
* lib/util don't use enum protocol_types in ms_fnmatch_protocolAndrew Bartlett2011-05-062-2/+2
| | | | | | | | | | This makes it easier to compile this in the top level with s3 and s4 headers. Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Fri May 6 08:50:52 CEST 2011 on sn-devel-104
* lib/util Use lib/util/ms_fnmatch.c in common for gen_fnmatch()Andrew Bartlett2011-05-061-2/+2
| | | | | | | | | gen_fnmatch was a duplicate symbol in the top level build. gen_fnmatch() used for simple non-CIFS pattern matching, so selecting the lib/util implementation should not be a concern. Andrew Bartlett
* lib/util Rename ms_fnmatch() to ms_fnmatch_protocol() to avoid dup symbolAndrew Bartlett2011-05-062-5/+6
| | | | | | | This verison of the function takes a protcol as argument to determine matching rules. Andrew Bartlett
* lib/util Move source3 tdb_wrap_open() into the common code.Andrew Bartlett2011-05-064-1/+246
| | | | | | | | | This #if _SAMBA_BUILD == 3 is very unfortunate, as it means that in the top level build, these options are not available for these databases. However, having two different tdb_wrap lists is a worse fate, so this will do for now. Andrew Bartlett
* More const fixes. Remove CONST_DISCARD.Jeremy Allison2011-05-062-3/+3
|
* Fix many const compiler warnings.Jeremy Allison2011-05-052-4/+4
|
* Clean up some const and other compiler warnings.Jeremy Allison2011-05-054-7/+9
| | | | | Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Thu May 5 00:59:40 CEST 2011 on sn-devel-104
* I added them, so I get to kill them :-). Finally remove all uses of ↵Jeremy Allison2011-05-043-99/+0
| | | | | | | safe_strcpy and safe_strcat. Change to strlcpy, strlcat. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Wed May 4 22:14:14 CEST 2011 on sn-devel-104
* Tidy up some missing checks for NULL in strlcpy.Jeremy Allison2011-05-041-1/+1
|
* Remove overmalloc_safe_strcpy - can be simple strlcpy.Jeremy Allison2011-05-041-8/+0
|
* Change safe_strcpy_base to strlcpy_base. Note the size doesn't change here ↵Jeremy Allison2011-05-041-2/+2
| | | | as the original macro auto-added the -1.
* Fix simple uses of safe_strcpy -> strlcpy. Easy ones where we just remove -1.Jeremy Allison2011-05-043-10/+10
|
* lib/util make string_wrappers.h a public headerAndrew Bartlett2011-05-031-1/+1
| | | | | | | | | | This isn't a very good public header, but util.h includes it, so we don't have much choice in the short term. Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Tue May 3 08:37:22 CEST 2011 on sn-devel-104
* lib/util Use lib/util/util_str.c in common, including strequal()Andrew Bartlett2011-05-032-3/+3
| | | | | | | | strequal() is now implemented in terms of strcasecmp_m() which is tested in smbtorture and which does not talloc() for ASCII or non-ASCII comparions, and has an ASCII fast-path. Andrew Bartlett
* lib/util Use compiler-checked safe string macros in top level code.Andrew Bartlett2011-05-032-35/+27
| | | | | | | This brings the 'safe' macros to the top level code, and removes duplication of the safe_strcpy() and safe_strcat() functions. Andrew Bartlett
* s4: fix arguments to safe_strcpy()Andrew Bartlett2011-05-031-5/+5
| | | | | | Found by the s3-derivied safe_strcpy() macro. Andrew Bartlett
* lib/util/charset Use push_string and talloc_strupper/strlower from common codeAndrew Bartlett2011-05-032-17/+10
| | | | | | | | | | | The only caller of push_string() (not to be confused with push_string_check()) in the common code was encode_pw_buffer(), and it didn't use the alignment or STR_UPPER flags. The talloc_strupper() and talloc_strlower() functions are tested in smbtorture, and are next_codepoint() based. Andrew Bartlett
* Remove strlower_m() and strupper_m() from source4 and common code.Andrew Bartlett2011-05-032-86/+0
| | | | | | | | | This function is problematic because a string may expand in size when changed into upper or lower case. This will then push characters off the end of the string in the s3 implementation, or panic in the former s4 implementation. Andrew Bartlett
* lib/util Move set_socket_options() into common code.Andrew Bartlett2011-05-032-0/+163
|
* lib/util Move more network utility functions from source3 into lib/utilAndrew Bartlett2011-05-034-1/+275
| | | | | | This will help with the merge of the interfaces layer. Andrew Bartlett
* talloc: use TC_UNDEFINE_SHRINK_CHUNK() instead of ↵Stefan Metzmacher2011-05-021-1/+36
| | | | | | | | | | | | | | TC_INVALIDATE_SHRINK_CHUNK() for realloc path If we optimize on top of raw realloc() we need TC_INVALIDATE_SHRINK_CHUNK together with TC_UNDEFINE_GROW_CHUNK (with was missing and caused false positive valgrind warnings). But that is really slow, as we do a lot of talloc_realloc calls in samba. That's why we only to TC_UNDEFINE_SHRINK_CHUNK() for now. metze
* lib/util Rename conv_str_size() -> conv_str_size_error()Andrew Bartlett2011-04-302-4/+2
|
* kerberos: Only include gssapi/gssapi_krb5.h when availableAndrew Bartlett2011-04-301-0/+2
|
* lib/util Re-merge the string_sub() and all_string_sub() from source3Andrew Bartlett2011-04-293-15/+46
| | | | Andrew Bartlett
* lib/util/charset Move strstr_m() to the top levelAndrew Bartlett2011-04-292-0/+84
|
* lib/util/charset Merge talloc-based pull and push charset functionsAndrew Bartlett2011-04-283-95/+151
| | | | | | These were copied from source3/lib/charcnv.c Andrew Bartlett
* lib/util/charset Add copyright headersAndrew Bartlett2011-04-281-1/+2
| | | | | Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Thu Apr 28 04:13:44 CEST 2011 on sn-devel-104
* lib/util/charset Make fast path from UTF16 to '8 bit' charsets clearerAndrew Tridgell2011-04-281-14/+28
| | | | | | | | This breaks the fast path into handling for -1 and handling for specified lenghts, avoding branch operations on each character. Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org> Signed-off-by: Andrew Tridgell <tridge@samba.org>
* lib/util/charset Add tests for srclen=-1 behaviour.Andrew Bartlett2011-04-281-0/+443
| | | | | | | | | This confirms that we do include a null terminator in all non-failed conversions. Andrew Bartlett Signed-off-by: Andrew Tridgell <tridge@samba.org>
* lib/util/charset use convert_string.c in commonAndrew Bartlett2011-04-284-204/+5
| | | | | | | | This brings another layer of the charcnv library in common. Andrew Bartlett Signed-off-by: Andrew Tridgell <tridge@samba.org>
* lib/util/charset Fix string termination conditions for UTF16 stringsAndrew Bartlett2011-04-281-4/+4
| | | | | | | | | This punts partial UTF16 strings to iconv() to deal with, as it's not a fast path any longer if it's got an odd length. Andrew Bartlett Signed-off-by: Andrew Tridgell <tridge@samba.org>
* dynconfig: Have only one dynconfig.o in the common code.Andrew Bartlett2011-04-271-1/+1
|
* libcli/auth Move Samba4's gssapi_error_string from GENSEC to libcli/authAndrew Bartlett2011-04-271-0/+10
| | | | | | This will allow the GSSAPI PAC fetch code to use it. Andrew Bartlett
* lib/util Define samba-util-common only for s3-wafAndrew Bartlett2011-04-261-24/+11
| | | | | | It causes too much trouble in the top level build. Andrew Bartlett
* lib/util: add RBVAL, RBVALS, RSBVAL and RSRBVALS macrosStefan Metzmacher2011-04-241-6/+11
| | | | | | They pull and push [u]int64_t values in big endian. metze
* Fix license info for talloc in manpage.Jelmer Vernooij2011-04-241-3/+3
| | | | | Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Sun Apr 24 03:27:54 CEST 2011 on sn-devel-104
* Fix case of libUTIL_LDB.Jelmer Vernooij2011-04-231-6/+6
| | | | | Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Sat Apr 23 18:52:06 CEST 2011 on sn-devel-104
* Support the 'PYTHON' environment variable.Jelmer Vernooij2011-04-232-0/+2
| | | | | Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Sat Apr 23 04:19:05 CEST 2011 on sn-devel-104
* asn1: Fix Coverity ID 2299, CHECKED_RETURNVolker Lendecke2011-04-221-1/+5
|
* lib/util/charset Always set *converted_size even on failureAndrew Bartlett2011-04-201-4/+2
| | | | | | | | | The caller may wish to inspect the partially converted string. Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Wed Apr 20 05:17:48 CEST 2011 on sn-devel-104
* lib/util/charset create _handle functions for convert_string() et alAndrew Bartlett2011-04-201-29/+86
| | | | | | | | | | | | | | This is now API compatible with the existing code in lib/util/charset lazy_initialize_conv() is no longer called as init_iconv() is called when the smb.conf is processed, and get_conv_handle() will auto-init with defaults if required. load_case_tables_library() is no longer requried as all binaries and libraries already load these in their entry points, as otherwise all the other string functions would fail. Andrew Bartlett
* tdb_backup: avoid transaction on backup file, use lockallSimo Sorce2011-04-191-8/+13
| | | | | | | | Transactions have the side effect of generating bigger files. By removing the transaction files get as much as 30% smaller. Autobuild-User: Simo Sorce <idra@samba.org> Autobuild-Date: Tue Apr 19 23:34:37 CEST 2011 on sn-devel-104
* tdb: make sure we skip over recovery area correctly.Rusty Russell2011-04-193-17/+44
| | | | | | | | | | If it's really the recovery area, we can trust the rec_len field, and don't have to go groping for bitpatterns. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> Autobuild-User: Rusty Russell <rusty@rustcorp.com.au> Autobuild-Date: Tue Apr 19 14:15:22 CEST 2011 on sn-devel-104
* tdb_expand: limit the expansion with huge recordsSimo Sorce2011-04-181-5/+20
| | | | | | | ldb can create huge records when saving indexes. Limit the tdb expansion to avoid consuming a lot of memory for no good reason if the record being saved is huge.
* tdb: tdb_repack() only when it's worthwhile.Rusty Russell2011-04-181-6/+31
| | | | | | | | | tdb_repack() is expensive and consumes memory, so we can spend some effort to see if it's worthwhile. In particular, tdbbackup doesn't need to repack: it started with an empty database! Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>