Stefan Metzmacher [Mon, 25 Feb 2008 10:34:44 +0000 (11:34 +0100)]
make test: pass --option=torture:sharedelay=100000 to samba4 smbtorture
BASE-DEFER_OPEN is now more strict with incorrect timing
metze
Volker Lendecke [Mon, 25 Feb 2008 08:55:53 +0000 (09:55 +0100)]
Do the formatting change in all 3 places :-)
Volker Lendecke [Mon, 25 Feb 2008 08:51:33 +0000 (09:51 +0100)]
Fix confusing error message -- bug 5252
Thanks to Walter Franzini
Volker Lendecke [Sun, 24 Feb 2008 10:32:22 +0000 (11:32 +0100)]
Allow "max mux" async i/o requests
In the negprot reply, we allowed the client to issued "max mux" concurrent
requests. The OS might allow less, for example AFAIK AIX has a configurable
limit of concurrent AIO requests. We will fall back to sync operation for the
requests that are too many when aio_read/aio_write return an error.
Jeremy, please check!
Volker Lendecke [Sun, 24 Feb 2008 10:39:57 +0000 (11:39 +0100)]
Export aio_request_done()
This is for external modules implementing the Posix AIO API that not
necessarily depend on the signal mechanism to indicate completion.
Michael Adam [Sun, 24 Feb 2008 00:00:39 +0000 (01:00 +0100)]
Fix aix-build of libtalloc.so by exporting all necessary symbols.
Use -bexpfull instead of -bexpall for LDSHFLAGS to also export
symbols starting with "_". This exports all necessary symbols
from libtalloc.so.
Michael
Volker Lendecke [Sat, 23 Feb 2008 23:01:07 +0000 (00:01 +0100)]
AIO on streams does not work (yet...)
Volker Lendecke [Sat, 23 Feb 2008 20:40:39 +0000 (21:40 +0100)]
Fix typo
Volker Lendecke [Sat, 23 Feb 2008 09:52:12 +0000 (10:52 +0100)]
Fix a C++ warning
Volker Lendecke [Sat, 23 Feb 2008 09:50:12 +0000 (10:50 +0100)]
Fix a C++ warning
Volker Lendecke [Sat, 23 Feb 2008 09:49:00 +0000 (10:49 +0100)]
Check return value of pipe(2)
Volker Lendecke [Sat, 23 Feb 2008 09:47:18 +0000 (10:47 +0100)]
Check return value of dup(2)
Volker Lendecke [Sat, 23 Feb 2008 09:43:58 +0000 (10:43 +0100)]
Fix a C++ warning
Volker Lendecke [Sat, 23 Feb 2008 09:42:43 +0000 (10:42 +0100)]
Check the return value of fgets
Volker Lendecke [Sat, 23 Feb 2008 09:54:59 +0000 (10:54 +0100)]
make idl: Check return value of asprintf
Jeremy Allison [Sat, 23 Feb 2008 00:19:59 +0000 (16:19 -0800)]
Fix "used uninitialized" errors.
Jeremy.
Jeremy Allison [Sat, 23 Feb 2008 00:12:57 +0000 (16:12 -0800)]
Fix debug messages.
Jeremy.
Jeremy Allison [Fri, 22 Feb 2008 21:38:03 +0000 (13:38 -0800)]
Merge branch 'v3-2-test' of ssh://jra@git.samba.org/data/git/samba into v3-2-test
Simo Sorce [Fri, 22 Feb 2008 19:10:28 +0000 (14:10 -0500)]
Make sure mount.cifs.c compiles on Fedora 9 with gcc 4.3
Volker Lendecke [Fri, 22 Feb 2008 15:17:10 +0000 (16:17 +0100)]
Don't use fname after create_file has been called
create_file calls unix_convert internally, so modifies fname. So we can't use
"fname" after create_file has returned. Use fsp->fsp_name instead.
Found during a lengthy debugging session with Karolin testing the xattr_tdb
module...
Michael Adam [Fri, 22 Feb 2008 12:53:05 +0000 (13:53 +0100)]
libreplace: don't use socketwrapper for getifaddrs() implementations.
Michael
Michael Adam [Fri, 22 Feb 2008 09:42:22 +0000 (10:42 +0100)]
libreplace: Fix comment originating from old samba source.
Michael
(cherry picked from commit
0440bcfe6359ca4842f473b1ca799cad9f1c6c96)
Michael Adam [Fri, 22 Feb 2008 09:43:42 +0000 (10:43 +0100)]
Not all implementations of struct ifaddrs define ifa_broadaddr.
E.g. the definition of libreplace doesn't. :-o
Michael
Michael Adam [Fri, 22 Feb 2008 00:59:45 +0000 (01:59 +0100)]
Remove the implementations of _get_interfaces and autoconf test in interfaces.c
getifaddrs() is now provided by libreplace.
Michael
Michael Adam [Thu, 21 Feb 2008 23:34:41 +0000 (00:34 +0100)]
libreplace: fix creation of conftest files for getifaddrs tests.
Add missing includes of replace.c and defines of SOCKET_WRAPPER_NOT_REPLACE.
Michael
Michael Adam [Thu, 21 Feb 2008 23:27:00 +0000 (00:27 +0100)]
Fix linked list of ifaddrs in implementations of rep_getifaddrs.
Produce proper list instead of one-node-loop.
Michael
Michael Adam [Thu, 21 Feb 2008 23:24:11 +0000 (00:24 +0100)]
Add missing initalizations of lastif in rep_getifaddr implementations.
Michael
Jeremy Allison [Thu, 21 Feb 2008 19:03:35 +0000 (11:03 -0800)]
Merge branch 'v3-2-test' of ssh://jra@git.samba.org/data/git/samba into v3-2-test
Karolin Seeger [Thu, 21 Feb 2008 18:34:48 +0000 (19:34 +0100)]
Change option name.
xattr:tdb -> xattr_tdb:file (according to the other vfs option names)
Karolin
Jeremy Allison [Thu, 21 Feb 2008 17:53:00 +0000 (09:53 -0800)]
Merge branch 'v3-2-test' of ssh://jra@git.samba.org/data/git/samba into v3-2-test
Michael Adam [Thu, 21 Feb 2008 17:16:10 +0000 (18:16 +0100)]
libreplace: fix compile errors in getifaddrs.c
Michael
Michael Adam [Thu, 21 Feb 2008 16:56:33 +0000 (17:56 +0100)]
Try and fix getifaddrs check on irix: dont't try to include config.h
The missing header file is judged "catastrophic" on irix.
Michael
Michael Adam [Thu, 21 Feb 2008 13:07:45 +0000 (14:07 +0100)]
Move the definition of SMB_LIBRARY to aclocal.m4.
Michael
Michael Adam [Thu, 21 Feb 2008 11:55:52 +0000 (12:55 +0100)]
configure: Abstract configuration of internal libs into an m4 macro.
New subsystem libraries can now be added by specifying SMB_LIBRARY(name).
Michael
Volker Lendecke [Thu, 21 Feb 2008 10:39:42 +0000 (11:39 +0100)]
fix typo
Michael Adam [Wed, 20 Feb 2008 23:34:16 +0000 (00:34 +0100)]
Remove check for secure mkstemp from configure.in.
It has moved to libreplace.
Michael
Michael Adam [Wed, 20 Feb 2008 23:11:03 +0000 (00:11 +0100)]
Remove mmap check from configure.in
It is available in libreplace.
Michael
Michael Adam [Thu, 21 Feb 2008 09:26:54 +0000 (10:26 +0100)]
Fix the build on irix: Prevent empty line in TDB_OBJ
This leads to a Makfile syntax error in the prerequisites for
bin/smbd. Wow, irix is really picky!
Michael
Jeremy Allison [Thu, 21 Feb 2008 06:10:54 +0000 (22:10 -0800)]
From: David Disseldorp <ddiss@sgi.com>
The vfs_prealloc module makes use of the now redundant fd parameter for
SMB_VFS_FTRUNCATE(), instead get the fd from the files_struct.
Patch for Samba 3.2 Test branch below.
Cheers, David D
Tim Potter [Mon, 18 Feb 2008 09:37:33 +0000 (20:37 +1100)]
Fix double free bugs after calling regfio_close()
Tim Potter [Mon, 18 Feb 2008 10:00:51 +0000 (21:00 +1100)]
Fix memory leaks on error path
Tim Potter [Sun, 17 Feb 2008 23:43:46 +0000 (10:43 +1100)]
Fix possible close of invalid fd if call to socket() returns -1.
Michael Adam [Wed, 20 Feb 2008 22:44:17 +0000 (23:44 +0100)]
Fix build with static libs: place tdb static lib after tdb-util objects.
Michael
Michael Adam [Wed, 20 Feb 2008 21:47:31 +0000 (22:47 +0100)]
configure: add --enable-shared-libs to control overall internal use of shared libs.
To disable internal use of shared libraries altogether (as opposed to
disabling use of single shared libs by --with-static-libs=LIBS), use
this new configure parameter --disable-shared-libs.
Michael
Michael Adam [Wed, 20 Feb 2008 20:33:06 +0000 (21:33 +0100)]
configure: Move assemblage of samba version strings to m4 include file.
Michael
Michael Adam [Wed, 20 Feb 2008 16:56:21 +0000 (17:56 +0100)]
Remove checks for ino_t, loff_t, offset_t, and comparison_fn_t from configure.in.
These tests are in libreplace.
Michael
Jelmer Vernooij [Wed, 20 Feb 2008 19:05:51 +0000 (20:05 +0100)]
Support dlopen(NULL, ...) on HPUX.
(cherry picked from commit
53c70b5f77a3b9abaab783590e66278129173d5f)
Michael Adam [Wed, 20 Feb 2008 16:26:39 +0000 (17:26 +0100)]
Remove tests for vsnprintf snprintf asprintf vasprintf and va_copy from configure.
These are tested in libreplace.
Michael
Michael Adam [Wed, 20 Feb 2008 11:53:07 +0000 (12:53 +0100)]
libreplace: change samba_cv_ to libreplace_cv_ in libreplace.m4.
Michael
(cherry picked from commit
83387ecccfe95b80525bf53c5fc9e945ffee10ec)
Michael Adam [Wed, 20 Feb 2008 11:49:30 +0000 (12:49 +0100)]
libreplace: change samba_cv_ to libreplace_cv_ in system/config.m4.
Michael
(cherry picked from commit
00c173bfba9c659750bf231fbd9278dd38aa8bfc)
Michael Adam [Wed, 20 Feb 2008 11:46:20 +0000 (12:46 +0100)]
libreplace: change samba_cv_ to libreplace_cv_ in getpass.m4.
Michael
(cherry picked from commit
d3b3d3ec9ff64108b4cd5b7c912ab4ea207256cb)
Michael Adam [Wed, 20 Feb 2008 11:43:37 +0000 (12:43 +0100)]
libreplace: change samba_cv_ to libreplace_cv_ in getifaddrs.m4
Michael
(cherry picked from commit
acab9def2a1e3460bef8baae6efc66d9dfad6eac)
Michael Adam [Tue, 19 Feb 2008 23:44:40 +0000 (00:44 +0100)]
Remove the getifaddrs checks from configure.in: they are now in lib/replace.
Michael
Michael Adam [Tue, 19 Feb 2008 23:17:31 +0000 (00:17 +0100)]
configure: Use SAMBA_CONFIGURE_CPPFLAGS for AC_LIBREPLACE_BROKEN_CHECKS.
To fix the build (make test) after merging libreplace changes.
Michael
Michael Adam [Tue, 19 Feb 2008 21:29:34 +0000 (22:29 +0100)]
libreplace: Remove double item in case statement.
This was by accident introduced in cherry-pick commit
7a7dcd9b1265b8f031c9a5e9c4cfa89216827a28: This tiny portion
had already been ported in
64ff1dad8664f14030c7d78c252d946216798a88.
MIchael
Michael Adam [Tue, 19 Feb 2008 16:25:42 +0000 (17:25 +0100)]
Remove relict SAMBA_CONFIGURE_CPPFLAGS from lib/replace.
Michael
(cherry picked from commit
d10cbb533c18a6d74160477d34a81bbd4cd6c7c8)
Jelmer Vernooij [Thu, 20 Dec 2007 16:07:31 +0000 (17:07 +0100)]
r26554: Fix test for getifaddr on FreeBSD. Patch by Timur Bakeyev.
(cherry picked from commit
37c7b65546190bdce40cb48435cc4fd51d89a124)
James Peach [Thu, 20 Dec 2007 15:35:42 +0000 (16:35 +0100)]
r26551: Make sure NULL is defined before using it to test for getifaddrs().
Patch from Timur I. Bakeyev <timur@com.bat.ru>.
(cherry picked from commit
188156228b53c4bbc9c18c6ff1a0d3c6d0ba5fcb)
Jelmer Vernooij [Mon, 17 Dec 2007 11:27:59 +0000 (12:27 +0100)]
r26507: Fix function signature for freeifaddrs.
(cherry picked from commit
cc873bdd2e86e5b380c3056810ccc5ad98372f7c)
Jelmer Vernooij [Mon, 17 Dec 2007 07:20:29 +0000 (08:20 +0100)]
r26497: Fix return type for freeifaddrs().
(cherry picked from commit
8c65053f51330bb55a81572264eefbcc56029dc1)
Jelmer Vernooij [Mon, 17 Dec 2007 06:45:05 +0000 (07:45 +0100)]
r26495: Add defines for getifaddrs/freeifaddrs.
(cherry picked from commit
c9e5a3078f7baa83743658d5648f0eefdeb05d2f)
Jelmer Vernooij [Mon, 17 Dec 2007 05:57:30 +0000 (06:57 +0100)]
r26492: Some hosts have a define called ifa_dstaddr.
(cherry picked from commit
c4cd935ee783b2f4939e2c481bbdb1bbdb9190cd)
Jelmer Vernooij [Mon, 17 Dec 2007 05:30:50 +0000 (06:30 +0100)]
r26491: Fix syntax.
(cherry picked from commit
2513230e286179747bb84e4e87121b80bea8f3f0)
Jelmer Vernooij [Mon, 17 Dec 2007 04:53:37 +0000 (05:53 +0100)]
r26487: Cope with systems that don't have struct sockaddr.sa_len.
(cherry picked from commit
56080469ab28ae5a2f456cced34814d9c33480c6)
Jelmer Vernooij [Sun, 16 Dec 2007 13:50:11 +0000 (14:50 +0100)]
r26470: Update README.
(cherry picked from commit
51a78cfc3e72d6b32ef6c7a6079165a36863b908)
Jelmer Vernooij [Sun, 16 Dec 2007 02:22:13 +0000 (03:22 +0100)]
r26469: Fix paths, only include IPv4 addresses for now.
(cherry picked from commit
fa9e3b6fa871b7541878f836ea54e882e614a3cf)
Jelmer Vernooij [Sun, 16 Dec 2007 01:49:52 +0000 (02:49 +0100)]
r26468: Match getifaddrs more closely, add trivial test.
(cherry picked from commit
92898c043b5a2649a2e423d02bcdaea78ae55737)
Jelmer Vernooij [Sun, 16 Dec 2007 01:39:01 +0000 (02:39 +0100)]
r26467: Use getifaddrs() for interface enumeration and provide replacements for platforms that don't have it in lib/replace.
(lib/replace part of
9b4924fbd8619033c55b4c6e2589da247332e7db - Michael)
Michael Adam [Tue, 19 Feb 2008 16:01:49 +0000 (17:01 +0100)]
configure: Move path (and debug) checks to an m4 include file check_path.m4.
This is inspired by metze's check_path.m4 of Samba4.
Michael
Michael Adam [Tue, 19 Feb 2008 15:48:49 +0000 (16:48 +0100)]
build: change selftest_prefix from ./ to ./st .
It was used as ${selftest_prefix}/st anyways...
Michael
Michael Adam [Tue, 19 Feb 2008 15:45:38 +0000 (16:45 +0100)]
configure: move debug check to developer check
...thereby grouping test checks and debug/developer checks together, respectively.
Michael
Michael Adam [Tue, 19 Feb 2008 15:44:12 +0000 (16:44 +0100)]
configure: Also set debug=yes for --enable-developer and --enable-krb5developer.
Michael
Michael Adam [Tue, 19 Feb 2008 15:43:39 +0000 (16:43 +0100)]
configure: add default for developer and krb5developer
Michael
Michael Adam [Tue, 19 Feb 2008 15:40:50 +0000 (16:40 +0100)]
configure: move more developer/test related checks up before the compiler checks.
Michael
Michael Adam [Tue, 19 Feb 2008 15:35:55 +0000 (16:35 +0100)]
Move the --enable-debug check up above all compiler checks.
Michael
Michael Adam [Tue, 19 Feb 2008 15:34:43 +0000 (16:34 +0100)]
configure: Introduce "debug" variable set to yes by --enable-debug.
Michael
Michael Adam [Tue, 19 Feb 2008 15:24:24 +0000 (16:24 +0100)]
configure: move AC_SUBST's of certain directories to the corresponding checks.
Michael
Michael Adam [Tue, 19 Feb 2008 15:18:32 +0000 (16:18 +0100)]
Move AC_ENABLE_SHARED and AC_DISABLE_STATIC to a more appropriate place.
I have to investigate the effect of these and evaluate the need of
their presence. For now establish more reasonable grouping.
Michael
Michael Adam [Tue, 19 Feb 2008 14:58:02 +0000 (15:58 +0100)]
configure.in: move definition of build dir up.
Michael
Michael Adam [Tue, 19 Feb 2008 14:47:30 +0000 (15:47 +0100)]
Remove unused m4 macro files.
These files were added in
aa14900f8291a017aa7fab2bbb9a6c79b12889b2
(automatic dependency tracking) in SAMBA_3_2, which was removed
from configure.in in the git glue commit
5c6c8e1fe93f340005110a7833946191659d88ab.
But apparently, the files were not removed by accident.
Michael
Volker Lendecke [Tue, 19 Feb 2008 12:27:08 +0000 (13:27 +0100)]
Update position information also for AIO
Necessary to survive RAW-SEEK with AIO enabled.
Jeremy, please check!
Volker Lendecke [Tue, 19 Feb 2008 14:53:57 +0000 (15:53 +0100)]
Inform level II oplock holders when we write using AIO
Jeremy, please check!
Karolin Seeger [Tue, 19 Feb 2008 10:53:36 +0000 (11:53 +0100)]
Change ldap search filter. This function is also used to search machine accounts which may be located in a different ou. This is an extension to
e71a48bb80cee85afcccacbce2884c0d600f4d72.
Karolin
Michael Adam [Tue, 19 Feb 2008 10:01:00 +0000 (11:01 +0100)]
Makefile.in: Rework registry-related object collections.
Group and name objects more sanely.
Michael
Michael Adam [Tue, 19 Feb 2008 00:22:32 +0000 (01:22 +0100)]
Use linbet_conf code in loadparm's registry handling.
This replaces the original hand-written tdb code, now that the
linking dependencies have been significantly reduced.
Michael
Michael Adam [Tue, 19 Feb 2008 00:04:31 +0000 (01:04 +0100)]
Make regdb_init() behave like regdb_open() when registry is already opened.
I.e. increment the refcounter.
Michael
Michael Adam [Mon, 18 Feb 2008 17:21:14 +0000 (18:21 +0100)]
Add a function libnet_conf_get_seqnum() to the libnet_conf API.
This is to provide a change sequence number to users, so that they
can use it to detect change in the config and trigger a reload.
Michael
Günther Deschner [Tue, 19 Feb 2008 01:50:54 +0000 (02:50 +0100)]
Remove unused marshalling for SVCCTL_UNLOCK_SERVICE_DB.
Guenther
Günther Deschner [Tue, 19 Feb 2008 01:50:01 +0000 (02:50 +0100)]
Use pidl for _svcctl_UnlockServiceDatabase().
Guenther
Günther Deschner [Tue, 19 Feb 2008 01:48:08 +0000 (02:48 +0100)]
Remove unused marshalling for SVCCTL_LOCK_SERVICE_DB.
Guenther
Günther Deschner [Tue, 19 Feb 2008 01:47:05 +0000 (02:47 +0100)]
Use pidl for _svcctl_LockServiceDatabase().
Guenther
Günther Deschner [Tue, 19 Feb 2008 01:43:56 +0000 (02:43 +0100)]
Remove unused marshalling for SVCCTL_QUERY_STATUS.
Guenther
Günther Deschner [Tue, 19 Feb 2008 01:43:04 +0000 (02:43 +0100)]
Use rpccli_svcctl_QueryServiceStatus() in net.
Guenther
Günther Deschner [Tue, 19 Feb 2008 01:41:05 +0000 (02:41 +0100)]
Use pidl for _svcctl_QueryServiceStatus().
Guenther
Günther Deschner [Tue, 19 Feb 2008 01:37:32 +0000 (02:37 +0100)]
Remove unused marshalling for SVCCTL_CONTROL_SERVICE.
Guenther
Günther Deschner [Tue, 19 Feb 2008 01:37:12 +0000 (02:37 +0100)]
Use rpccli_svcctl_ControlService() in net.
Guenther
Günther Deschner [Tue, 19 Feb 2008 01:35:03 +0000 (02:35 +0100)]
Use pidl for _svcctl_ControlService().
Guenther
Günther Deschner [Tue, 19 Feb 2008 01:30:53 +0000 (02:30 +0100)]
Remove unused marshalling for SVCCTL_START_SERVICE.
Guenther
Günther Deschner [Tue, 19 Feb 2008 01:29:16 +0000 (02:29 +0100)]
Use rpccli_svcctl_StartServiceW() in net.
Guenther
Günther Deschner [Tue, 19 Feb 2008 01:28:46 +0000 (02:28 +0100)]
Use pidl for _svcctl_StartServiceW().
Guenther