summaryrefslogtreecommitdiffstats
path: root/source3/lib
Commit message (Collapse)AuthorAgeFilesLines
* s3: Fix Coverity ID 2573: UNUSED_VALUEVolker Lendecke2011-05-201-2/+3
| | | | Andrew B., please check!
* Fix Bug 8152 - smbd crash in release_ip()Christian Ambach2011-05-191-0/+5
| | | | | | | | release_ip() needs the private_data, but it was never saved away to feed it into release_ip() later Autobuild-User: Christian Ambach <ambi@samba.org> Autobuild-Date: Thu May 19 21:21:14 CEST 2011 on sn-devel-104
* s3-lib Replace StrnCaseCmp() with strncasecmp_m()Andrew Bartlett2011-05-183-63/+3
| | | | | | | strncasecmp_m() never needs to call to talloc, and via next_codepoint() still has an ASCII fast-path bypassing iconv() calls. Andrew Bartlett
* s3-lib Replace StrCaseCmp() with strcasecmp_m()Andrew Bartlett2011-05-187-93/+10
| | | | | | | strcasecmp_m() never needs to call to talloc, and via next_codepoint() still has an ASCII fast-path bypassing iconv() calls. Andrew Bartlett
* is_my_ipaddr() should recognise loopback addresses as ours.Jeremy Allison2011-05-171-5/+5
| | | | | Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Tue May 17 20:05:42 CEST 2011 on sn-devel-104
* s3-netapi Initialise global variables in libnetapiAndrew Bartlett2011-05-131-1/+1
| | | | | | | It is important to initalise the global variables when loading this configuration for the potentially first time. Andrew Bartlett
* s3-libnetapi Don't create a talloc_stackframe() in a global variableAndrew Bartlett2011-05-132-16/+37
| | | | | | | | | | This also ensures that libnetapi_free() invalidates the global stat_ctx variable, and changes the API so that the behaviour of the error string routines is to consistently return a allocated string. Pair-Programmed-With: Günther Deschner <gd@samba.org> Andrew Bartlett
* s3-libnetapi/libnetjoin: fix uninitialized variables after the libsmbconf ↵Günther Deschner2011-05-131-1/+1
| | | | | | changes. Guenther
* s3-lib/smbconf: fix uninitialized error code in smbconf_reg_init().Günther Deschner2011-05-121-1/+1
| | | | | | | Guenther Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Thu May 12 18:09:16 CEST 2011 on sn-devel-104
* libsmbconf: Convert smbconf_transaction_*() to sbcErr.Andreas Schneider2011-05-101-6/+27
| | | | Signed-off-by: Michael Adam <obnox@samba.org>
* libsmbconf: Convert smbconf_delete_includes() to sbcErr.Andreas Schneider2011-05-102-13/+16
| | | | Signed-off-by: Michael Adam <obnox@samba.org>
* libsmbconf: Convert smbconf_set_includes() to sbcErr.Andreas Schneider2011-05-102-18/+23
| | | | Signed-off-by: Michael Adam <obnox@samba.org>
* libsmbconf: Convert smbconf_get_includes() to sbcErr.Andreas Schneider2011-05-102-19/+18
| | | | Signed-off-by: Michael Adam <obnox@samba.org>
* libsmbconf: Convert smbconf_delete_parameter() to sbcErr.Andreas Schneider2011-05-101-6/+8
| | | | Signed-off-by: Michael Adam <obnox@samba.org>
* libsmbconf: Convert smbconf_get_parameter() to sbcErr.Andreas Schneider2011-05-101-7/+6
| | | | Signed-off-by: Michael Adam <obnox@samba.org>
* libsmbconf: Convert smbconf_set_parameter() to sbcErr.Andreas Schneider2011-05-102-13/+22
| | | | Signed-off-by: Michael Adam <obnox@samba.org>
* libsmbconf: Convert smbconf_delete_share() to sbcErr.Andreas Schneider2011-05-101-7/+14
| | | | Signed-off-by: Michael Adam <obnox@samba.org>
* libsmbconf: Convert smbconf_get_share() to sbcErr.Andreas Schneider2011-05-101-56/+73
| | | | Signed-off-by: Michael Adam <obnox@samba.org>
* libsmbconf: Convert smbconf_create_share() to smbErr.Andreas Schneider2011-05-101-10/+12
| | | | Signed-off-by: Michael Adam <obnox@samba.org>
* libsmbconf: Convert smbconf_get_share_names() to sbcErr.Andreas Schneider2011-05-101-29/+37
| | | | Signed-off-by: Michael Adam <obnox@samba.org>
* libsmbconf: Convert smbconf_drop() to sbcErr.Andreas Schneider2011-05-101-6/+12
| | | | Signed-off-by: Michael Adam <obnox@samba.org>
* libsmbconf: Convert smbconf_open() to sbcErr.Andreas Schneider2011-05-102-12/+16
| | | | Signed-off-by: Michael Adam <obnox@samba.org>
* libsmbconf: Convert smbconf_init() to sbcErr.Andreas Schneider2011-05-106-21/+28
| | | | Signed-off-by: Michael Adam <obnox@samba.org>
* s3-events: tevent_internal.h is not a public headerAndrew Tridgell2011-05-101-1/+1
| | | | | | | | | | | | | | | | | | | | We need to use the "foo.h" form instead of the <foo.h> form for headers that are not installed publicly. Otherwise when an external version of tevent is used we won't find the header and the build will fail. Note that this creates a structure dependency between the tevent structures in the external library and the headers in our source tree. That is not ideal, but is currently OK as the waf build will only use the external library if it is at least the same version as the internal tree, which means it will actually be the same version, as we release the external version from our tree. We should come up with a better solution, but for now this allows openchange to build again. Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Tue May 10 16:06:40 CEST 2011 on sn-devel-104
* gencache: don't use CLEAR_IF_FIRST as fallback.Rusty Russell2011-04-191-7/+3
| | | | | | | | | | | | CLEAR_IF_FIRST only works if *all* openers use that flag. So just truncate the file: it's racy, but that's what we're doing anyway. We'd really need a TDB_OPENCHECK_OR_CLEAR flag to do this properly (or in TDB2, a open hook at the right point). Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* s3-lib Use common lib/socket code for get_interfaces() et alAndrew Bartlett2011-05-084-302/+3
|
* Improve debug messages when creating socket directoriesAndrew Bartlett2011-05-081-5/+12
| | | | | | This makes clear what the permissions error and directory name actually is Andrew Bartlett
* s3-libsmb: move protos to libsmb/proto.hGünther Deschner2011-05-061-0/+1
| | | | Guenther
* s3: only include tdb headers where needed.Günther Deschner2011-05-0617-0/+20
| | | | Guenther
* lib/util Use lib/util/ms_fnmatch.c in common for gen_fnmatch()Andrew Bartlett2011-05-061-7/+0
| | | | | | | | | 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
* errors: Remove unused unix_to_werror()Andrew Bartlett2011-05-061-6/+0
|
* s3-lib Remove unused dos error codes from errmap_unixAndrew Bartlett2011-05-061-44/+47
| | | | | | | This also makes unix_nt_errmap private to errmap_unix.c and errormap.c so the tables themselves cannot be duplicate symbols until merged. Andrew Bartlett
* lib/util Move source3 tdb_wrap_open() into the common code.Andrew Bartlett2011-05-065-159/+4
| | | | | | | | | 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
* Fix broken interface to set_namearray() - don't modify incoming string.Jeremy Allison2011-05-061-6/+17
|
* More const fixes. Remove CONST_DISCARD.Jeremy Allison2011-05-062-3/+3
|
* More simple const fixes.Jeremy Allison2011-05-052-4/+4
|
* More const fixes for compiler warnings from the waf build.Jeremy Allison2011-05-0510-15/+15
|
* More const compiler warning fixes.Jeremy Allison2011-05-051-1/+1
|
* Fix many const compiler warnings.Jeremy Allison2011-05-053-8/+8
|
* s3-lib: run minimal_includes.pl.Günther Deschner2011-05-052-2/+0
| | | | Guenther
* Fold null terminator into listlen length, change to strlcpy.Jeremy Allison2011-05-041-6/+4
|
* s3-system: move LOCK_ defines to lib/system.cGünther Deschner2011-05-031-0/+9
| | | | Guenther
* s3-ctdb Fix duplicate function name due to packet -> ctdb_packet rename.Andrew Bartlett2011-05-032-2/+2
| | | | Signed-off-by: Günther Deschner <gd@samba.org>
* lib/util Use lib/util/util_str.c in common, including strequal()Andrew Bartlett2011-05-031-86/+0
| | | | | | | | 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/charset Use push_string and talloc_strupper/strlower from common codeAndrew Bartlett2011-05-031-122/+0
| | | | | | | | | | | 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
* s3-lib make push_ucs2() staticAndrew Bartlett2011-05-031-1/+1
|
* Remove strlower_m() and strupper_m() from source4 and common code.Andrew Bartlett2011-05-031-0/+61
| | | | | | | | | 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-031-160/+0
|
* lib/util Move more network utility functions from source3 into lib/utilAndrew Bartlett2011-05-032-227/+0
| | | | | | This will help with the merge of the interfaces layer. Andrew Bartlett
* s3-ctdb Rename packet file and files to ctdb_packetAndrew Bartlett2011-05-032-53/+52
| | | | | | | This avoids a conflicts with the Samba4 packet.c, as these is only used in CTDB Andrew Bartlett