Volker Lendecke
ad37b7b0ae
Fix some warnings
...
warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result
2008-02-25 16:09:26 +01:00
Volker Lendecke
71641f04d4
Correctly check return of rename(2)
...
Bug 5279 -- Thanks to Max Matveev
2008-02-25 13:05:18 +01:00
Volker Lendecke
4a1a138b0f
Fix inotify detection
...
Bug 5271 -- thanks to Tiziano Müller
2008-02-25 12:58:56 +01:00
Stefan Metzmacher
9b761062df
make test: pass --option=torture:sharedelay=100000 to samba4 smbtorture
...
BASE-DEFER_OPEN is now more strict with incorrect timing
metze
2008-02-25 11:34:44 +01:00
Volker Lendecke
d32066eaef
Do the formatting change in all 3 places :-)
2008-02-25 09:55:53 +01:00
Volker Lendecke
19de47fef1
Fix confusing error message -- bug 5252
...
Thanks to Walter Franzini
2008-02-25 09:51:33 +01:00
Volker Lendecke
8f86f7f25c
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!
2008-02-24 11:39:59 +01:00
Volker Lendecke
9a069d306b
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.
2008-02-24 11:39:57 +01:00
Michael Adam
213ba3a719
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
2008-02-24 01:00:39 +01:00
Volker Lendecke
1ba223f202
AIO on streams does not work (yet...)
2008-02-24 00:05:40 +01:00
Volker Lendecke
621db68f32
Fix typo
2008-02-23 21:40:39 +01:00
Volker Lendecke
c4cab9e1c1
Fix a C++ warning
2008-02-23 11:04:13 +01:00
Volker Lendecke
ac027a9b2e
Fix a C++ warning
2008-02-23 11:04:13 +01:00
Volker Lendecke
49da21c03a
Check return value of pipe(2)
2008-02-23 11:04:13 +01:00
Volker Lendecke
d34701d49c
Check return value of dup(2)
2008-02-23 11:04:13 +01:00
Volker Lendecke
d993b4c3ce
Fix a C++ warning
2008-02-23 11:04:13 +01:00
Volker Lendecke
b8aaa9a69f
Check the return value of fgets
2008-02-23 11:04:13 +01:00
Volker Lendecke
d9fb7d7bdc
make idl: Check return value of asprintf
2008-02-23 10:54:59 +01:00
Jeremy Allison
06d15d8a9f
Fix "used uninitialized" errors.
...
Jeremy.
2008-02-22 16:19:59 -08:00
Jeremy Allison
d265cedb55
Fix debug messages.
...
Jeremy.
2008-02-22 16:12:57 -08:00
Jeremy Allison
bcc5371b8e
Merge branch 'v3-2-test' of ssh://jra@git.samba.org/data/git/samba into v3-2-test
2008-02-22 13:38:03 -08:00
Simo Sorce
ce57d38825
Make sure mount.cifs.c compiles on Fedora 9 with gcc 4.3
2008-02-22 14:10:28 -05:00
Volker Lendecke
183fe57046
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...
2008-02-22 17:15:09 +01:00
Michael Adam
85eec1d1d6
libreplace: don't use socketwrapper for getifaddrs() implementations.
...
Michael
2008-02-22 14:13:28 +01:00
Michael Adam
ddf7ac4f26
libreplace: Fix comment originating from old samba source.
...
Michael
(cherry picked from commit 0440bcfe63
)
2008-02-22 10:48:18 +01:00
Michael Adam
25341602ec
Not all implementations of struct ifaddrs define ifa_broadaddr.
...
E.g. the definition of libreplace doesn't. :-o
Michael
2008-02-22 10:43:42 +01:00
Michael Adam
7970901223
Remove the implementations of _get_interfaces and autoconf test in interfaces.c
...
getifaddrs() is now provided by libreplace.
Michael
2008-02-22 01:59:45 +01:00
Michael Adam
26e6ebc709
libreplace: fix creation of conftest files for getifaddrs tests.
...
Add missing includes of replace.c and defines of SOCKET_WRAPPER_NOT_REPLACE.
Michael
2008-02-22 00:36:20 +01:00
Michael Adam
ec9f4f5066
Fix linked list of ifaddrs in implementations of rep_getifaddrs.
...
Produce proper list instead of one-node-loop.
Michael
2008-02-22 00:36:20 +01:00
Michael Adam
65710e752f
Add missing initalizations of lastif in rep_getifaddr implementations.
...
Michael
2008-02-22 00:36:20 +01:00
Jeremy Allison
9dabde1f3e
Merge branch 'v3-2-test' of ssh://jra@git.samba.org/data/git/samba into v3-2-test
2008-02-21 11:03:35 -08:00
Karolin Seeger
a2230ccc17
Change option name.
...
xattr:tdb -> xattr_tdb:file (according to the other vfs option names)
Karolin
2008-02-21 19:34:48 +01:00
Jeremy Allison
beb0a76b93
Merge branch 'v3-2-test' of ssh://jra@git.samba.org/data/git/samba into v3-2-test
2008-02-21 09:53:00 -08:00
Michael Adam
22cdd4cb50
libreplace: fix compile errors in getifaddrs.c
...
Michael
2008-02-21 18:16:10 +01:00
Michael Adam
5778c90819
Try and fix getifaddrs check on irix: dont't try to include config.h
...
The missing header file is judged "catastrophic" on irix.
Michael
2008-02-21 17:56:33 +01:00
Michael Adam
4724b13ed8
Move the definition of SMB_LIBRARY to aclocal.m4.
...
Michael
2008-02-21 14:07:45 +01:00
Michael Adam
54d73769c4
configure: Abstract configuration of internal libs into an m4 macro.
...
New subsystem libraries can now be added by specifying SMB_LIBRARY(name).
Michael
2008-02-21 12:59:42 +01:00
Volker Lendecke
2d51bf67fc
fix typo
2008-02-21 11:40:22 +01:00
Michael Adam
b5e894cb3b
Remove check for secure mkstemp from configure.in.
...
It has moved to libreplace.
Michael
2008-02-21 10:27:56 +01:00
Michael Adam
310c121faf
Remove mmap check from configure.in
...
It is available in libreplace.
Michael
2008-02-21 10:27:56 +01:00
Michael Adam
011f24c6c9
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
2008-02-21 10:27:56 +01:00
Jeremy Allison
d9b72282c6
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
2008-02-20 22:10:54 -08:00
Tim Potter
737bb950d5
Fix double free bugs after calling regfio_close()
2008-02-20 18:28:41 -08:00
Tim Potter
47dd0700b4
Fix memory leaks on error path
2008-02-20 18:27:40 -08:00
Tim Potter
f7d2f69299
Fix possible close of invalid fd if call to socket() returns -1.
2008-02-20 17:58:50 -08:00
Michael Adam
39eef8e86c
Fix build with static libs: place tdb static lib after tdb-util objects.
...
Michael
2008-02-20 23:44:17 +01:00
Michael Adam
63bff18f3f
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
2008-02-20 23:38:27 +01:00
Michael Adam
8b220717e8
configure: Move assemblage of samba version strings to m4 include file.
...
Michael
2008-02-20 21:33:24 +01:00
Michael Adam
2e6b66eda4
Remove checks for ino_t, loff_t, offset_t, and comparison_fn_t from configure.in.
...
These tests are in libreplace.
Michael
2008-02-20 21:33:24 +01:00
Jelmer Vernooij
8883ee2418
Support dlopen(NULL, ...) on HPUX.
...
(cherry picked from commit 53c70b5f77
)
2008-02-20 21:12:54 +01:00