summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* ldb:ldb/common/ldb_controls.c - reference "err_string" variable correctlyMatthias Dieter Wallnöfer2012-01-021-1/+1
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* talloc: Slightly simplify talloc_unlinkVolker Lendecke2012-01-021-8/+7
| | | | | | | | | Nested if's are hard to understand to me. Signed-off-by: Stefan Metzmacher <metze@samba.org> Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Mon Jan 2 19:07:23 CET 2012 on sn-devel-104
* talloc: Fix a typoVolker Lendecke2012-01-021-3/+3
|
* gensec: Allow an alternate set of modules to be specifiedAndrew Bartlett2011-12-281-1/+1
| | | | | | | This will allow s3 to specify modules to use as a list, rather than needing to start the individual module with gensec_start_mech_by_ops() Andrew Bartlett
* lib/charset: Remove an unused variableVolker Lendecke2011-12-251-0/+2
| | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Sun Dec 25 15:07:56 CET 2011 on sn-devel-104
* s3: Fix fn signatures in charset_macosx.cVolker Lendecke2011-12-252-6/+6
|
* tdb: Use tdb_parse_record in tdb_update_hashVolker Lendecke2011-12-251-11/+15
| | | | This avoids a tdb_fetch, thus a malloc/memcpy/free in the tdb_store path
* tdb: Use tdb_parse_record in tdb_update_hashVolker Lendecke2011-12-251-12/+16
| | | | This avoids a tdb_fetch, thus a malloc/memcpy/free in the tdb_store path
* libreplace: Don't check for standards.h on darwin (Lion)Volker Lendecke2011-12-251-2/+10
| | | | | standards.h on Lion holds a #warning that standards.h will be removed. This is annoying during the build.
* ldb:ldb_tdb.c - fix warnings in "ltdb_init_rootdse"Matthias Dieter Wallnöfer2011-12-231-7/+1
| | | | | | We should ignore the LDB result. Signed-off-by: Stefan Metzmacher <metze@samba.org>
* ldif-handler: Fix the case for attribute dnspropertyAmitay Isaacs2011-12-231-1/+1
|
* lib/param: add support for "SMB2_24" in smb.conf optionsStefan Metzmacher2011-12-221-0/+1
| | | | metze
* runcmd: use set_close_on_exec()Andrew Tridgell2011-12-221-0/+8
| | | | | | | this prevents a fd leak to child processes Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Thu Dec 22 14:00:06 CET 2011 on sn-devel-104
* runcmd: use a pipe for stdin to child processesAndrew Tridgell2011-12-221-7/+46
| | | | | this allows child processes to detect the exit of the parent by looking for EOF on stdin
* param: domain_logons and domain_master are of type enum_bool_autoAmitay Isaacs2011-12-223-3/+3
| | | | | | | | These parameters should be defined as int and not bool. This fixes the test failures on big endian machines. Autobuild-User: Amitay Isaacs <amitay@samba.org> Autobuild-Date: Thu Dec 22 10:37:42 CET 2011 on sn-devel-104
* param: Fix the data type for bAvailableAmitay Isaacs2011-12-221-1/+1
| | | | | | | | This causes the copy_service() to not copy bAvailable boolean on big endian machines causing tests to fail. Autobuild-User: Amitay Isaacs <amitay@samba.org> Autobuild-Date: Thu Dec 22 05:30:49 CET 2011 on sn-devel-104
* tdb: don't free old recovery area when expanding if already at EOF.Rusty Russell2011-12-211-17/+30
| | | | | | | | | | | | We allocate a new recovery area by expanding the file. But if the recovery area is already at the end of file (as shown in at least one client case), we can simply expand the record, rather than freeing it and creating a new one. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> Autobuild-User: Rusty Russell <rusty@rustcorp.com.au> Autobuild-Date: Wed Dec 21 06:25:40 CET 2011 on sn-devel-104
* tdb: use same expansion factor logic when expanding for new recovery area.Rusty Russell2011-12-213-21/+34
| | | | | | | | | | If we're expanding because the current recovery area is too small, we expand only the amount we need. This can quickly lead to exponential growth when we have a slowly-expanding record (hence a slowly-expanding transaction size). Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* tdb2: Avoid a malloc/memcpy in _tdb1_storeVolker Lendecke2011-12-191-19/+8
| | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Mon Dec 19 16:53:40 CET 2011 on sn-devel-104
* tdb: Avoid a malloc/memcpy in _tdb_storeVolker Lendecke2011-12-191-17/+8
|
* tdb: be more careful on 4G files.Rusty Russell2011-12-196-23/+53
| | | | | | | | | | | I came across a tdb which had wrapped to 4G + 4K, and the contents had been destroyed by processes which thought it only 4k long. Fix this by checking on open, and making tdb_oob() check for wrap itself. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> Autobuild-User: Rusty Russell <rusty@rustcorp.com.au> Autobuild-Date: Mon Dec 19 07:52:01 CET 2011 on sn-devel-104
* s3: Fix the clustering buildVolker Lendecke2011-12-173-5/+5
| | | | | | | ctdb_private.h already defines set_close_on_exec. Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Sat Dec 17 18:41:39 CET 2011 on sn-devel-104
* s4 dns: Allow updates based on smb.conf settingKai Blin2011-12-173-0/+21
| | | | | Autobuild-User: Kai Blin <kai@samba.org> Autobuild-Date: Sat Dec 17 04:19:40 CET 2011 on sn-devel-104
* Add support for TCP_DEFER_ACCEPTVolker Lendecke2011-12-161-0/+3
| | | | | | | | | | | | | "man tcp" on Linux says: TCP_DEFER_ACCEPT Allows a listener to be awakened only when data arrives on the socket. Takes an integer value (seconds), this can bound the maximum number of attempts TCP will make to complete the connection. This option should not be used in code intended to be portable. This might reduce the 139/445 forks a bit on high-load servers
* lib/param: Set s4 "host msdfs = true" by defaultAndrew Bartlett2011-12-161-0/+2
| | | | | | | | | | | This matches the s3 loadparm, and makes this feature available by default for our users in a DC environment. (This is needed for the correct operation of GPOs). Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Fri Dec 16 01:08:34 CET 2011 on sn-devel-104
* loadparm: fixed service list handlingAndrew Tridgell2011-12-151-14/+4
| | | | | | | | | | | when you have: server services = +smb -s3fs and 'smb' is already in the list, then this should not be an error. This ensures that a config that specifically sets the services it wants doesn't generate an error if the service list being set happens to be the default
* genrand: use set_close_on_exec()Andrew Tridgell2011-12-151-0/+9
| | | | this prevents a fd leak to child processes
* lib/util: added set_close_on_exec()Andrew Tridgell2011-12-152-0/+23
| | | | | this was already in tevent_util.c, but library layering prevented us from using it in some other libraries
* lib/ccan: Fix some typos in libccan.m4Martin Schwenke2011-12-151-2/+2
| | | | | | | Signed-off-by: Martin Schwenke <martin@meltin.net> Autobuild-User: Rusty Russell <rusty@rustcorp.com.au> Autobuild-Date: Thu Dec 15 07:40:33 CET 2011 on sn-devel-104
* lib/ccan: fix m4 tests for builtin_expect and compound literals.Rusty Russell2011-12-151-9/+10
| | | | Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* tdb2: Fix python documentation for tdb.Tdb objectAmitay Isaacs2011-12-141-1/+1
|
* tdb: Fix python documentation for tdb moduleAmitay Isaacs2011-12-131-1/+1
|
* tevent: tevent_schedule_immediate never failsVolker Lendecke2011-12-091-1/+0
| | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Fri Dec 9 16:47:23 CET 2011 on sn-devel-104
* Add pep8.Jelmer Vernooij2011-12-082-0/+1365
|
* testtools: Update to new upstream revision.Jelmer Vernooij2011-12-0811-46/+750
|
* pyldb: Add more docstrings.Jelmer Vernooij2011-12-081-7/+12
| | | | | Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Thu Dec 8 22:08:49 CET 2011 on sn-devel-104
* Add samba_kcc load parameterDave Craft2011-12-081-0/+11
| | | | | | | | Configures parameter to enumerate name of python KCC topology generator for subsequent use by samba_runcmd_send() invocation from kcc task Signed-off-by: Andrew Tridgell <tridge@samba.org>
* Add version attribute for pytevent.Jelmer Vernooij2011-12-073-1/+5
| | | | | Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Wed Dec 7 15:07:49 CET 2011 on sn-devel-104
* tevent: Install python tevent modules.Jelmer Vernooij2011-12-061-0/+6
| | | | | Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Tue Dec 6 23:13:37 CET 2011 on sn-devel-104
* Add stub python module for tevent.Jelmer Vernooij2011-12-061-0/+28
|
* lib/util/util_tdb: adhere to coding style for tdb_data_is_empty()Michael Adam2011-12-061-1/+2
| | | | | Autobuild-User: Michael Adam <obnox@samba.org> Autobuild-Date: Tue Dec 6 15:22:08 CET 2011 on sn-devel-104
* tdb2: tlist: remove type arg from tlist_top(), tlist_tail()Rusty Russell2011-12-051-1/+1
| | | | | | | | | | | With the type canary, it's unnecessary. Though the implementation is a bit more awkward since they longer map directly through to list_top/tail. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> (Imported from CCAN commit a6b5111fe6948e51114c33aa34785c9fd0d403e6) Autobuild-User: Rusty Russell <rusty@rustcorp.com.au> Autobuild-Date: Mon Dec 5 12:13:08 CET 2011 on sn-devel-104
* tdb2: display capability information in tdb_summary()Rusty Russell2011-12-052-25/+145
| | | | | | | | | This means we know they're there in future, and what restrictions they carry. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> (Imported from CCAN commit b3ca95351517e76b635347b39382b059a66f8388)
* tdb2: add a capability list from the header.Rusty Russell2011-12-059-27/+410
| | | | | | | | | | | | | | | This allows even more extensibility in future: in particular, the top bits of each capability tell us what to do if we don't understand it: fail the open, fail to open for write, or don't try to check the format. tdb_check needs to understand the capability list so it can know to skip over it: each element in the list is prefixed with the type tag and the length. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> (Imported from CCAN commit 35f198de1851a7d57064546b7ced677b6fabee27)
* tdb2: provide tdb_layout_write() rather than implying it by new_tdb_layout arg.Rusty Russell2011-12-054-32/+47
| | | | | | | | Neater API. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> (Imported from CCAN commit 79d603a5f73dfbb655d8d08f67eecb5f2da542d5)
* tdb2: add an internal TDB_CANT_CHECK flag.Rusty Russell2011-12-052-0/+12
| | | | | | | | | This will be used shortly to indicate that a TDB2 file indicates it cannot be checked. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> (Imported from CCAN commit e01d795c8964b791def1e9f68c386b350b3a2a84)
* tdb2: suppress failtest more than once on mmap.Rusty Russell2011-12-051-0/+5
| | | | | | | | | | | | Now we test failing mmap, ccanlint -v time has increased from 200 to 330 seconds. Worse, tests no time out on my laptop. Fix this, by preventing us from going down that particular rabbit hole. ccanlint -v now takes 201 seconds again. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> (Imported from CCAN commit fbae37ba91ec230e34be564084099726cc3a9d47)
* tdb2: simplify failtest helper.Rusty Russell2011-12-052-31/+3
| | | | | | | | | | | | | | | failtest now culls duplicates for itself (and more efficiently), so don't replicate the logic here. It changes things a bit, because failtest uses backtraces rather than a simple call point to find duplicates. Also, fix one case (in run-11-simple-fetch.c) where we simply exited rather than using failtest_exit(). We got away with it before, because we never hit that particular failure pattern. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> (Imported from CCAN commit 3d99c9334fe3067c88772547b9c06acec21616ea)
* tdb2: failtest: use a linked list for history, not an array.Rusty Russell2011-12-052-30/+26
| | | | | | | | | | This avoids a silly realloc, but more importantly it gets us closer to being runtime extensible, as each history element can be a different size. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> (Imported from CCAN commit 9571a41e8494f3135557e3ec50c2de856392173e)
* tdb2: consolidate testing failtest suppression routines.Rusty Russell2011-12-058-72/+14
| | | | | | | | Less cut & paste means less patching as failtest changes. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> (Imported from CCAN commit 1819a36a3e69565bd7b853503fceb846558a45bd)