summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* lib/util: Remove unused sys_inet_makeaddr()Andrew Bartlett2012-02-172-11/+0
| | | | | | Found by callcatcher. Andrew Bartlett
* lib/util: Remove unused sys_gethostbyname()Andrew Bartlett2012-02-172-48/+0
| | | | | | Found by callcatcher. Andrew Bartlett
* lib/util: Remove sys_poll as it is no longer neededAndrew Bartlett2012-02-162-91/+0
| | | | | | | | | | | sys_poll() is only needed if the signal pipe is set up and used, but as no signal handler ever writes to the pipe, this can all be removed. signal based events are now handled via tevent. Andrew Bartlett Signed-off-by: Jeremy Allison <jra@samba.org>
* lib/util: Remove unused sys_select_signal()Andrew Bartlett2012-02-162-19/+0
| | | | | | | | Now sys_poll needs to be cleaned up not to refer to the pipe that is now not used. Andrew Bartlett Signed-off-by: Jeremy Allison <jra@samba.org>
* tevent_signal: Fix a valgrind errorVolker Lendecke2012-02-151-1/+2
| | | | | | | | | | | This fixes an uninitialized read introduced by my fix for the tevent_signal destructors. From looking at the code you might believe that this kicks in only when talloc failed. But with -O3 I do see it in normal operations. Sorry for that. Autobuild-User: Volker Lendecke <vl@samba.org> Autobuild-Date: Wed Feb 15 17:58:37 CET 2012 on sn-devel-104
* tdb: build and run unit tests in tdb/test/Rusty Russell2012-02-141-7/+87
| | | | | | | | | | | | | | | | | | | | Now we can build the test binaries: the CCAN style is to compile everything called "compile_ok*.c", compile and run everything called "run*.c", compile, link with the module, and run everything called "api*.c", and link any other C files (presumably test helpers) into all the tests. Unfortunately, actually passing that between the various parts of wscript is painful, so I open-coded the names. Also, the tests expect to be run in a (temporary) directory they can pollute, with the test directory found in test/ (to find the canned TDB files, for example). Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> Autobuild-User: Rusty Russell <rusty@rustcorp.com.au> Autobuild-Date: Tue Feb 14 06:53:46 CET 2012 on sn-devel-104
* tdb/test: fix up tests for use in SAMBA tdb code.Rusty Russell2012-02-145-13/+16
| | | | | | | | | | | 1) Make sure we include "tdb_private.h" first, to get the right headers (esp. the correct setting of _FILE_OFFSET_BITS before unistd.h). 2) Fix 3G file test since expand logic has changed. 3) Fix nested transaction test, since default is to allow nesting. 4) Capture fdatasync, which was slowing down transaction expand. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* tdb: wean CCAN-style unit tests off of tap.Rusty Russell2012-02-1425-23/+64
| | | | | | | | We could use subunit, but that's overkill. Just print messages when we fail, and use exit status. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* tdb: import unit tests from CCAN into tdb/test/Rusty Russell2012-02-1435-1/+2567
| | | | | | | | | | | I pulled tdb into CCAN as an experiment a while ago; it doesn't belong there, but it has accumulated some important unit tests. These are copied from CCAN version init-1486-gc438ec1 with #include "../" changed to #include "../common/". Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* tdb: make tdb_private.h idempotent.Rusty Russell2012-02-141-0/+3
| | | | | | | | | | The most convenient way to write unit tests in C is to directly #include the C files (CCAN uses this, for example). That works quite well, but it means that tdb_private.h now needs to be protected against multiple inclusions. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* s3-libads: Move to using only the HAVE_KRB5 defineAndrew Bartlett2012-02-131-2/+2
| | | | | | HAVE_KRB5 already implies that GSSAPI is present as well. Andrew Bartlett
* s3-lib/addns: Move to system/kerberos.h and HAVE_KRB5Andrew Bartlett2012-02-132-18/+3
|
* LDB:pyldb.c - use always the case insensitive comparison for attribute namesMatthias Dieter Wallnöfer2012-02-131-2/+2
| | | | | | We can make no assumptions about our users Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* lib/util: Remove unused str_format_nbt_domain()Andrew Bartlett2012-02-102-41/+0
| | | | | | Found by callcatcher: http://www.skynet.ie/~caolan/Packages/callcatcher.html Andrew Bartlett
* charset: Remove unused strcmp_w()Andrew Bartlett2012-02-102-15/+0
| | | | | | | | Found by callcatcher. Found by callcatcher: http://www.skynet.ie/~caolan/Packages/callcatcher.html Andrew Bartlett
* charset: Remove unused iconv_talloc()Andrew Bartlett2012-02-103-120/+1
| | | | | | Found by callcatcher: http://www.skynet.ie/~caolan/Packages/callcatcher.html Andrew Bartlett
* tevent: change the version to 0.9.15Stefan Metzmacher2012-02-092-1/+79
| | | | | | | metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Thu Feb 9 12:24:19 CET 2012 on sn-devel-104
* tevent: Fix deleting signal events from within themselvesVolker Lendecke2012-02-091-2/+33
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* Fix shadow variable name warning.Jeremy Allison2012-02-081-10/+10
| | | | | Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Wed Feb 8 22:55:08 CET 2012 on sn-devel-104
* crypto: Use libbsd md5 header, if available.Jelmer Vernooij2012-02-073-2/+17
|
* crypto/md5: Change prototypes to match BSD.Jelmer Vernooij2012-02-071-5/+7
|
* charset/tests: Add prototypes for test functions.Jelmer Vernooij2012-02-072-0/+7
|
* loadparm: handle P_SEP in switches (silences warning with clang).Jelmer Vernooij2012-02-071-0/+5
|
* pysocketwrapper: fix behaviour to be consistent with 'socket.getsockopt'Jelmer Vernooij2012-02-071-2/+2
| | | | socklen_t is unsigned
* crypto: Add prototype for main torture functions.Jelmer Vernooij2012-02-073-0/+4
|
* lib/util: Add hex_encode_bufVolker Lendecke2012-02-062-9/+21
| | | | | Autobuild-User: Volker Lendecke <vl@samba.org> Autobuild-Date: Mon Feb 6 09:15:33 CET 2012 on sn-devel-104
* s3-popt: Fix configure.developer builds on Solairs.Ira Cooper2012-02-041-0/+2
| | | | | | | | | | alloca.h needs to be included, or the build complains the implicit definition of alloca. Signed-off-by: Jeremy Allison <jra@samba.org> Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Sat Feb 4 03:27:42 CET 2012 on sn-devel-104
* loadparm: fix a load of uninitialized memory errors found by valgrind.Michael Adam2012-02-031-1/+1
|
* replace: Only add bsd dependency when bsd library was found.Jelmer Vernooij2012-02-021-1/+4
| | | | | Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Thu Feb 2 05:18:45 CET 2012 on sn-devel-104
* tdb2: add --disable-tdb2Rusty Russell2012-02-021-0/+3
| | | | | | | | | | I thought you could --disable-tdb2=false, apparently not! Thanks Michael Adam... Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> Autobuild-User: Rusty Russell <rusty@rustcorp.com.au> Autobuild-Date: Thu Feb 2 03:43:08 CET 2012 on sn-devel-104
* selftest: Remove unused support for --exeextAndrew Bartlett2012-02-014-58/+58
|
* replace: Add include for bsd/string.h.Jelmer Vernooij2012-02-011-0/+4
|
* Fix bug #8729 - getpass regressions on Solaris/Illumos - 3.6 and master.Ira Cooper2012-01-312-0/+13
| | | | | Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Tue Jan 31 23:28:09 CET 2012 on sn-devel-104
* tevent: Fix python documentation stringsAmitay Isaacs2012-01-311-2/+2
| | | | | Autobuild-User: Amitay Isaacs <amitay@samba.org> Autobuild-Date: Tue Jan 31 16:59:29 CET 2012 on sn-devel-104
* replace: Only include C files from which there are actually functions used.Jelmer Vernooij2012-01-311-2/+21
| | | | | Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Tue Jan 31 15:21:04 CET 2012 on sn-devel-104
* replace: use libbsd for strlcat/strlcpy when available.Jelmer Vernooij2012-01-311-15/+21
|
* tdb2: make --enable-tdb2 the default.Rusty Russell2012-01-301-2/+2
| | | | | | | | | We still use the tdb1 on-disk format, but we do so via the tdb2 library. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> Autobuild-User: Rusty Russell <rusty@rustcorp.com.au> Autobuild-Date: Mon Jan 30 08:02:43 CET 2012 on sn-devel-104
* tdb2: add -1 and -2 options to tdbtortureRusty Russell2012-01-301-1/+18
| | | | | (For now, -1 is the default).
* tdb2:tdbtorture: use TEST_DATA_PREFIX for filesRusty Russell2012-01-301-9/+34
| | | | | | TDB2 version of commit b83672b36c1ea8c35833c40c3919b63809f16624. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* tdb2: name tools the same as TDB1 tools.Rusty Russell2012-01-301-5/+5
| | | | | | | | Otherwise, when we switch everyone's scripts will break (including our own tests!). Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* tdb2: tools/tdb2backupRusty Russell2012-01-302-0/+374
| | | | | | | Minor changes from tdb/tools/tdbbackup.c. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* tdb_compat: only use hashsize attribute when O_CREATRusty Russell2012-01-301-1/+1
| | | | | | | | tdb2 complains if you specify a tdb1 hashsize, and you're not actually trying to create a new database. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* ldb_wrap.c: fix TDB2-incompatible API usage.Rusty Russell2012-01-301-1/+1
| | | | | | | | | Auditing revealed one place still expecting a -1 return on failure: tdb2 returns the (negative) errcode directly, so the portable way to do this is to check for != 0. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* tdb2: copy tdb1's changed expansion logic.Rusty Russell2012-01-303-27/+40
| | | | | | | | | TDB2 uses the same expansion logic as TDB1, which got factored out recently. So update TDB2 to match. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> (Imported from CCAN commit c438ec17d7b2efe76e56e5fc5ab88bd4a02735e8)
* tdb2: careful on wrap.Rusty Russell2012-01-306-20/+29
| | | | | | | | | | | | It's much harder to wrap a 64-bit tdb2 than a 32-bit tdb1, but we should still take care against bugs. Also, we should *not* cast the length to a size_t when comparing it to the stat result, in case size_t is 32 bit. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> (Imported from CCAN commit 6f7cb26e589cea081e71c59801eae87178967861)
* lib: Remove dead mszip code.Andreas Schneider2012-01-253-710/+0
| | | | RIP, long live zlib.
* Introduce dump_data_fileVolker Lendecke2012-01-252-0/+17
| | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Wed Jan 25 11:57:18 CET 2012 on sn-devel-104
* ldbedit: prevent a transaction warning on failureKelly Yeoh2012-01-251-0/+1
| | | | | | | | | | if a modify fails then cancel the transaction to prevent a dangling transaction error Signed-off-by: Andrew Tridgell <tridge@samba.org> Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Wed Jan 25 07:06:40 CET 2012 on sn-devel-104
* param: handle P_BYTES in more placesAndrew Bartlett2012-01-211-0/+1
|
* lib/param: avoid talloc_reference() in copy_service()Stefan Metzmacher2012-01-111-3/+3
| | | | | | | | | | | The memory reduction compared of talloc_reference() over talloc_strdup() is typically very low. As the strings are typically short compared to the talloc header overhead. metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Wed Jan 11 16:13:50 CET 2012 on sn-devel-104