summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* s3:waf: add cluster support / ctdb checks.Michael Adam2011-04-021-0/+196
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | The checks are roughtly taken from the autoconf ctdb checks. I was not able to implement checks with CHECK_DECL, CHECK_TYPE, CHECK_HEADER and friends, because the ctdb headers seem to need too special a setup of includes and defines in order to compile. So I used CHECK_CODE() in all checks. In the long run, this should be changed. I supported a --with-ctdb-dir options to allow for building against a ctdb that is not installed into /usr (e.g. against a local git checkout). In order to implement this, I had to hand includes in to the CHECK_CODE function. Here I found a problem with CHECK_CODE (or even the core waf conf.check() function: The CHECK_CODE function does not expand the includes it gets (i.e. '#' is not expanded to the base dir, and relative paths are left relative). But the core check() function seems to ignore all include paths that are not absolute paths. Hence in particular the usual default '# .' for the includes is useless. So I preprocessed the list of includes for the cluster checks. But I assume that it would be useful to move this expansion into CHECK_CODE or even into the core waf check function. Autobuild-User: Michael Adam <obnox@samba.org> Autobuild-Date: Sat Apr 2 03:26:55 CEST 2011 on sn-devel-104
* s3:waf:compare_config_h3.sh: make diff tool configurable as env var "DIFF"Michael Adam2011-04-021-3/+5
|
* s3:waf:compare_config_h3.sh: specify autoconf-config.h as commandline parameterMichael Adam2011-04-021-1/+6
|
* Fix bug #7987 - ACL can get lost when files are being renamed.Jeremy Allison2011-04-023-1/+49
| | | | | | | | | There is no reason for smbd with Windows ACLs to use chmod or fchmod unless it's a file opened with UNIX extensions or with posix pathnames. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Sat Apr 2 02:40:43 CEST 2011 on sn-devel-104
* Fix bug #8047 - mdns registration doesn't work if "interfaces" is used in ↵Marc A. Dahlhaus2011-04-011-0/+7
| | | | | | | smb.conf Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Fri Apr 1 23:15:34 CEST 2011 on sn-devel-104
* s3: Fix Coverity ID 1137: CONSTANT_EXPRESSION_RESULTVolker Lendecke2011-04-011-2/+2
| | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Fri Apr 1 09:35:19 CEST 2011 on sn-devel-104
* s3: Fix Coverity ID 1136: CONSTANT_EXPRESSION_RESULTVolker Lendecke2011-04-011-1/+1
|
* debug: Restore the s3-style check in check_log_size()Volker Lendecke2011-03-311-1/+6
| | | | | | | This has caused me considerable grief. Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Thu Mar 31 19:42:38 CEST 2011 on sn-devel-104
* s3:configure: allow building without SCHEDULE_FOR_DELETION with ↵Michael Adam2011-03-311-2/+6
| | | | | | | --enable-old-ctdb Autobuild-User: Michael Adam <obnox@samba.org> Autobuild-Date: Thu Mar 31 18:55:38 CEST 2011 on sn-devel-104
* s3:configure: introduce "--enable-old-ctdb" to enable enforcing build ↵Michael Adam2011-03-311-0/+6
| | | | against old ctdb
* s3:configure: add check for new CTDB_CONTROL_SCHEDULE_FOR_DELETIONMichael Adam2011-03-311-0/+19
|
* s3:configure: rework logic of ctdb/clustering checksMichael Adam2011-03-311-77/+113
|
* s3:configure: remove unused variable CTDB_CFLAGSMichael Adam2011-03-311-2/+0
|
* s3:configure: fix a comment.Michael Adam2011-03-311-1/+1
|
* s3:dbwrap_ctdb: in ctdb_delete, send a SCHEDULE_FOR_DELETION control to ↵Michael Adam2011-03-311-1/+56
| | | | | | | | | | | | local ctdbd This way, the record will be scheduled for fast vacuuming. This is sent with the NOREPLY flag, so ctd should not sent a reply packet and samba does not expect one. Hence, it is not important for the success of the db_ctdb_delete command whether or not the ctdbd we are running against supports the SCHEDULE_FOR_DELETION control.
* s3:ctdb: pass the ctdb control flags to the ctdb daemon when sending the controlMichael Adam2011-03-311-0/+1
| | | | | | The only flag that is currently used is the NOREPLY flag to indicate that the client expects no reply packet. This needs to get passed down to the ctdb daemon so that it really does not send a reply.
* s3:ctdb: samba can now handle the NOREPLY flagMichael Adam2011-03-311-3/+0
| | | | | | Revert "samba3 can't handle NOREPLY yet" This reverts commit 9bf211db6d7d6ef6e59508de69d6d8dfe5bae059.
* s3:ctdb: correctly handle cstatus if CTDB_CTRL_FLAG_NOREPLY is set.Michael Adam2011-03-311-0/+3
|
* s3-net: Do not use uninitialized valueSumit Bose2011-03-311-0/+2
| | | | | | | | | s3-net: Do not use uninitialized value Signed-off-by: Andreas Schneider <asn@samba.org> Autobuild-User: Andreas Schneider <asn@cryptomilk.org> Autobuild-Date: Thu Mar 31 18:09:57 CEST 2011 on sn-devel-104
* s3-winbindd: Use the correct enums for samr_QueryDomainInfo.Andreas Schneider2011-03-311-2/+2
|
* lib/util/charset Add tests for strcasecmp_m(), talloc_strupper() et alAndrew Bartlett2011-03-315-15/+242
| | | | | | | | | | | | | | | | | | This adds tests for: strncasecmp_m strcasecmp_m strupper_talloc_n strlower_talloc strhaslower strhasupper The tests can certainly be improved with pre-calculated upper and lower case text, but this at least puts them though their paces. Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Thu Mar 31 14:24:22 CEST 2011 on sn-devel-104
* s4-dsdb: cope with failed searches in the linked attributes callbackAndrew Tridgell2011-03-311-16/+15
| | | | | | | | This fixes a bug where we try to add an empty backlink because the search for the forward link failed. Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Thu Mar 31 13:37:36 CEST 2011 on sn-devel-104
* s3-torture: a very simple test for convert_string_error()Andrew Tridgell2011-03-312-1/+99
| | | | | | this is a very simple test based on the example volker gave in 1e50f9a5. A more sophisticated test will also be worthwhile, but this at least gives us a basic test while changes are being made
* s3: Fix a typoVolker Lendecke2011-03-311-1/+1
| | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Thu Mar 31 12:50:53 CEST 2011 on sn-devel-104
* charconv: Use talloc_tos() in the S3 buildVolker Lendecke2011-03-311-1/+9
| | | | | | | | In S3 we put a talloc_pool on top of the stack so that an allocation from talloc_tos() normally is just a pointer increment. Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Thu Mar 31 09:14:01 CEST 2011 on sn-devel-104
* Arg. I hate the "if (xxx) return foo" all on one line style of code.Jeremy Allison2011-03-311-2/+8
| | | | | | | Fix the talloc leaks I introduced by not spotting these returns. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Thu Mar 31 05:19:34 CEST 2011 on sn-devel-104
* Don't burn 2k of stack on every iconv, use the heap when it's a slow call.Jeremy Allison2011-03-311-16/+25
| | | | | Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Thu Mar 31 04:09:09 CEST 2011 on sn-devel-104
* Fix bug #7996 - sgid bit lost on folder rename.Jeremy Allison2011-03-303-1/+23
| | | | | Refuse to set dos attributes into unix mode bits on such a folder.
* SMBTA: make vfs_smb_traffic_analyzer aware of the sendfile and recvfile ↵Holger Hetterich2011-03-301-1/+41
| | | | functionality and store the results as common read/write results.
* lib/util/charset smb_panic() on incorrect use of strlen_m_extAndrew Bartlett2011-03-311-0/+18
| | | | | | | | | This may save a developer some time in the future. Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Thu Mar 31 02:40:31 CEST 2011 on sn-devel-104
* lib/util/charset Add tests for strlen_m_ext() and convert_string_talloc()Andrew Bartlett2011-03-311-2/+87
| | | | | | | This convers a few more cases for convert_string_talloc() and introduces tests for strlen_m_ext() across complex multibyte strings. Andrew Bartlett
* lib/util/charset Add wrapper to allow testing of strlen_m_ext()Andrew Bartlett2011-03-312-2/+22
| | | | | | | This allows test routines to force in particular character sets, and not rely on the smb.conf. Andrew Bartlett
* lib/util/charset correct calculation of UTF8 character sizesAndrew Bartlett2011-03-311-1/+1
| | | | | | Characters between 0x800 0x0FFFF are 3 bytes long. Andrew Bartlett
* s3-samr: make getgrgid() failure a little more visible in ↵Günther Deschner2011-03-311-1/+1
| | | | | | | | | _samr_CreateDomAlias(). Guenther Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Thu Mar 31 01:00:42 CEST 2011 on sn-devel-104
* s3-idmap: fix the build of idmap_hash on FreeBSD.Günther Deschner2011-03-311-0/+1
| | | | Guenther
* s3-libndr: add ../librpc/ndr/libndr.h include in some places.Günther Deschner2011-03-317-0/+7
| | | | Guenther
* s3-rpcclient: include rpc_client/cli_pipe.h globally in rpcclient.hGünther Deschner2011-03-318-7/+2
| | | | Guenther
* rep_parse_prs: remove some dead, unused code.Günther Deschner2011-03-312-421/+0
| | | | Guenther
* Fix convert_string() to take a *converted_size arg. and return a bool.Jeremy Allison2011-03-3014-108/+153
| | | | | | | | Makes these interfaces much harder to misuse and easier to ensure error checking. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Wed Mar 30 23:59:37 CEST 2011 on sn-devel-104
* s3-build: make it a little easier to build smbtorture4.Günther Deschner2011-03-301-1/+1
| | | | | | | | | | | Only configure with --enable-socket-wrapper --enable-nss-wrapper --enable-uid-wrapper, not --enable-developer which turns on at least one -Werror switch. Guenther Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Wed Mar 30 23:12:42 CEST 2011 on sn-devel-104
* s3-vfs: try to fix build of aio_fork module.Günther Deschner2011-03-301-1/+2
| | | | Guenther
* Change convert_string_internal() and convert_string_error() to bool return.Jeremy Allison2011-03-303-58/+55
| | | | | | | Move closer to makeing all convert_string_XXX functions return bool. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Wed Mar 30 20:58:10 CEST 2011 on sn-devel-104
* Fix the nstring calls to use the correct sizes.Jeremy Allison2011-03-301-6/+6
|
* This doesn't look like it has anything to do with character set conversion, ↵Jeremy Allison2011-03-301-7/+10
| | | | | | | | | | | | | | | | | | | but it does :-). Turns out one of the *really* significant differences between convert_string() in source4 and source3, is that the one in source3 will return 0 for byte length converted when called with dest_len = 0 whereas the one in source4 returns (size_t)-1 and sets errno to E2BIG. Allow the ndr_string code to cope with the (arguably correct) way that the source4 implementation works. This code only gets excercised in the print spooler tests, which aren't run in source4, which is why this bug has lasted for so long. You don't want to know how long it took me to find this :-). Jeremy.
* s3: Fix g_lock_lock after the select/poll conversionVolker Lendecke2011-03-301-1/+1
| | | | | | | | Without clustering we don't have an fd to listen on, and sys_poll needs one element of space Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Wed Mar 30 18:36:50 CEST 2011 on sn-devel-104
* s3-smbd: try to fix the irix build.Günther Deschner2011-03-301-0/+1
| | | | | | | Guenther Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Wed Mar 30 17:17:58 CEST 2011 on sn-devel-104
* s3-vfs acl modules: more non-linux build fixes.Günther Deschner2011-03-307-1/+7
| | | | | | | Guenther Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Wed Mar 30 16:00:02 CEST 2011 on sn-devel-104
* s3-passdb: move LOOKUP_NAME_ flags to passdb where they belong to.Günther Deschner2011-03-304-21/+50
| | | | Guenther
* s3-passdb: move some passdb defines to passdb.hGünther Deschner2011-03-302-29/+29
| | | | Guenther
* s3-proto: pure cosmetics, remove some generated comments.Günther Deschner2011-03-301-55/+0
| | | | Guenther