summaryrefslogtreecommitdiffstats
path: root/source3/lib
Commit message (Collapse)AuthorAgeFilesLines
* s3:messaging: start with to use signal events instead of the raw signal ↵Stefan Metzmacher2009-01-221-37/+65
| | | | | | interfaces metze
* s3:events: always run_events() before sys_select()Stefan Metzmacher2009-01-221-5/+4
| | | | | | We might have pending signal events not only timed events. metze
* Actually complete 3662c2b...Volker Lendecke2009-01-221-2/+1
|
* Memory leaks and other fixes found by Coveritytodd stecher2009-01-211-11/+15
|
* libsmbconf: move the non-registry parts of libsmbconf to top levelMichael Adam2009-01-216-1428/+0
| | | | Michael
* s3:libsmbconf: include smbconf headers with lib/smbconf prefixMichael Adam2009-01-212-4/+4
| | | | Michael
* s3:libsmbconf: use talloc_free instead of TALLOC_FREE in reg backendMichael Adam2009-01-211-20/+20
| | | | Michael
* s3:libsmbconf: use talloc_free instead of TALLOC_FREE in txt backendMichael Adam2009-01-211-5/+6
| | | | Michael
* s3:libsmbconf: use talloc_free instead of TALLOC_FREE in smbconf_initMichael Adam2009-01-211-1/+1
| | | | Michael
* s3:libsmbconf: use talloc_free instead of TALLOC_FREE in testsuiteMichael Adam2009-01-211-5/+5
| | | | Michael
* s3:libsmbconf: use talloc_free instead of TALLOC_FREE in smbconf_util.cMichael Adam2009-01-211-2/+2
| | | | Michael
* s3:libsmbconf: use talloc_free instead of TALLOC_FREE in smbconf.cMichael Adam2009-01-211-2/+2
| | | | Michael
* s3:libsmbconf: remove the init headers from smbconf.hMichael Adam2009-01-215-19/+100
| | | | | | | | | | give the smbconf_init() dispatcher and the backends (smbconf_reg and smbconf_txt) a header of their own each. This allows to use the basic infrastructure and single backends individually. Michael
* s3:libsmbconf: remove unused function smbconf_is_writeable_bystring()Michael Adam2009-01-212-27/+0
| | | | Michael
* Fix warning; base dn is no longer const.Jelmer Vernooij2009-01-211-2/+2
|
* Replace ldb_search() with ldb_search_exp_fmt(), like in Samba 4.Jelmer Vernooij2009-01-219-86/+16
|
* Reorder arguments to ldb_search() to match what is in Samba 4.Jelmer Vernooij2009-01-2110-53/+47
|
* "userdom_struct" does not need "full_name" anymore -- unusedVolker Lendecke2009-01-201-2/+1
|
* s3:messaging: also recreate the local messaging backend in messaging_reinit()Stefan Metzmacher2009-01-201-3/+11
| | | | | | This prepares the change to use signal events in the tdb backend. metze
* s3: reinit_after_fork() should reinit the event context before the messaging ↵Stefan Metzmacher2009-01-201-4/+4
| | | | | | | | | context Because messaging_reinit() may add events to the event context, which will removed by event_context_reinit(). metze
* s3:events: add support for signal eventsStefan Metzmacher2009-01-201-0/+6
| | | | metze
* s3:dbwrap: add dbwrap_delete(), dbwrap_store() and dbwrap_fetch()Stefan Metzmacher2009-01-191-8/+26
| | | | | | The _bystring function are now just tiny wrappers. metze
* s3:dbwrap: add get_flags() hook to db_contextStefan Metzmacher2009-01-192-0/+17
| | | | metze
* Remove unused tdb_search_keys()Volker Lendecke2009-01-191-68/+0
|
* simplify gencache_iterate a bit, fix nonempty blank linesVolker Lendecke2009-01-191-86/+84
|
* libnetapi_open_pipe does not need to return cli_stateVolker Lendecke2009-01-1810-246/+12
| | | | | | | | | | The user session key is also available in rpccli->auth->user_session_key Guenther, please check! Thanks, Volker
* Add a macro async_req_setup()Volker Lendecke2009-01-185-91/+47
| | | | This streamlines setting up a multi-step async request a bit
* "First thing, kill all the language lawyers" :-). Ensure possible insane ↵Jeremy Allison2009-01-161-1/+1
| | | | | | | compilers can't kill us later. Jeremy.
* s3:cluster: fix ctdb ipv6 supportStefan Metzmacher2009-01-161-10/+20
| | | | | | | | | | | | | | | We need to use CTDB_CONTROL_TCP_CLIENT instead of CTDB_CONTROL_TCP_ADD. CTDB_CONTROL_TCP_CLIENT has support for 2 modes in newer ctdb versions: - with struct ctdb_control_tcp it only supports ipv4. - with struct ctdb_control_tcp_addr it supports ipv4 and ipv6. You need new header files which defines struct ctdb_control_tcp_addr, but at runtime it should be fine to work against older ctdb versions (<= 1.0.68). metze
* Allow reinit_after_fork to be called safely from within swat and other ↵Jeremy Allison2009-01-151-10/+14
| | | | | | | binaries that don't have an event context or a msg context. Fixes crash bug in swat. Jeremy.
* s3-util: for convenience, provide format comments in tdb_unpack().Günther Deschner2009-01-161-7/+7
| | | | Guenther
* s3: make better use of ccache by not including version.h in every C-file.Michael Adam2009-01-154-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | version.h changes rather frequently. Since it is included via includes.h, this means each C file will be a cache miss. This applies to the following situations: * When building a new package with a new Samba version * building in a git branch after calling mkversion.sh after a new commit (i.e. virtually always) This patch improves the situation in the following way: * remove inlude "version.h" from includes.h * Use samba_version_string() instead of SAMBA_VERSION_STRING in files that use no other macro from version.h instead of SAMBA_VERSION_STRING. * explicitly include "version.h" in those files that use more macros from "version.h" than just SAMBA_VERSION_STRING. Michael
* Fix bug #6040 - Calling Samba print server with an aliased DNS-name fails.Jeremy Allison2009-01-151-4/+5
| | | | Jeremy.
* Remove smbclient globals that bled into clidfs.c. Now we only haveJeremy Allison2009-01-141-1/+2
| | | | | the connections list and authentication structures to worry about. Jeremy
* Fix build of netapi.Jeremy Allison2009-01-141-1/+2
| | | | Jeremy.
* Fix bug noticed by Volker - if sendfile returns zero thenJeremy Allison2009-01-131-4/+12
| | | | | we might have to handle a short send by filling with zeros. Jeremy.
* Fix bug #6019 File corruption in Clustered SMB/NFS environment managed via CTDBJeremy Allison2009-01-131-2/+2
| | | | Jeremy.
* Make STATEDIR and CACHEDIR configurable through ./configure and loadparm.cSteven Danneman2009-01-122-14/+66
| | | | | | If they are not explicitely set in either place both will default to LOCKDIR. Signed-off-by: Michael Adam <obnox@samba.org>
* Even for srclen == 0 we have to return somethingVolker Lendecke2009-01-121-0/+6
| | | | | | | | This fixes a regression reported by Corinna Vinschen <corinna@vinschen.de> Thanks, Volker
* s3:events: debug sys_select() errorsStefan Metzmacher2009-01-091-0/+3
| | | | metze
* s3:events: install a tevent debug handler that calls DEBUG()Stefan Metzmacher2009-01-091-1/+42
| | | | metze
* Fix race condition in alarm lock processing noticed by Richard Sharpe ↵Jeremy Allison2009-01-081-1/+1
| | | | | | | | | | | | | | | <realrichardsharpe@gmail.com>. "It seems to me that if the lock is already held by another process when we enter this code, there is a race between the timeout and the granting. If the lock is subsequently granted, the process releasing the lock will signal the wait variable (or whatever) and our process will be scheduled. However, if the timeout occurs before we are scheduled, the timeout will be delivered first. We will have the lock but will forget we have the lock, and never release it." Jeremy.
* Several fixes to our use of spliceVolker Lendecke2009-01-071-4/+6
| | | | | | | | | | | | | | | | | The splice manpage explicitly requires loff_t as offset. Copy "offset" there. Probably not required, but I wanted to make sure it's as required. Splice blocks with large buffers. For me it worked with 16k and blocked with 32k and beyond. It would be nice to see a clarification in the manpage of splice for this behaviour. Splice if used with an offset increments the offset. From the manpage this was at least not entirely obvious :-) I haven't yet activated this (try_splice_call ist still false by default), it needs more testing. Volker
* s3-samr: avoid all init_samr_user* functions.Günther Deschner2009-01-061-29/+35
| | | | Guenther
* s3:events: use more tevent_common_* functionsStefan Metzmacher2009-01-051-158/+6
| | | | metze
* Merge branch 'master' of ssh://git.samba.org/data/git/sambaJelmer Vernooij2009-01-055-201/+186
|\
| * s3:events: register as tevent backendStefan Metzmacher2009-01-051-137/+172
| | | | | | | | metze
| * s3:events: get rid of the stupid set_event_dispatch_time() functionStefan Metzmacher2009-01-051-16/+0
| | | | | | | | metze
| * s3:events: get rid of the stupid cancel_named_event() functionStefan Metzmacher2009-01-051-16/+0
| | | | | | | | metze
| * s3:events: change event_add_timed() prototype to match samba4Stefan Metzmacher2009-01-054-19/+17
| | | | | | | | metze