jra/samba/.git
16 years agoClosed memory leak on error path.
Steven Danneman [Wed, 27 Feb 2008 04:14:04 +0000 (20:14 -0800)]
Closed memory leak on error path.
(This used to be commit 376de8a0e4194e186b460911e3319b0f4448203e)

16 years agoupdate .gitignore with new test program executable
Derrell Lipman [Wed, 27 Feb 2008 02:46:48 +0000 (21:46 -0500)]
update .gitignore with new test program executable
(This used to be commit 7e6da154b18f0aabcf2f8050bc5a57677bc9b322)

16 years agoadd a test program for the new ftruncate functionality
Derrell Lipman [Wed, 27 Feb 2008 02:46:08 +0000 (21:46 -0500)]
add a test program for the new ftruncate functionality
(This used to be commit df995eddbddec80a0d9d4659bbb9c6ca8a45d02b)

16 years agoadd smbc_ftruncate() to emulate POSIX ftruncate()
Derrell Lipman [Wed, 27 Feb 2008 02:44:51 +0000 (21:44 -0500)]
add smbc_ftruncate() to emulate POSIX ftruncate()
(This used to be commit 6f5051b9c1405ab1dc3e697419ceedb3acac46d8)

16 years agoadd 64-bit macros from samba4
Derrell Lipman [Wed, 27 Feb 2008 02:43:13 +0000 (21:43 -0500)]
add 64-bit macros from samba4
(This used to be commit a19e5fd5846685d5264e92bedf5cb57d99271f28)

16 years agoadd a function to truncate a file to a specified size
Derrell Lipman [Wed, 27 Feb 2008 02:42:26 +0000 (21:42 -0500)]
add a function to truncate a file to a specified size
(This used to be commit 7e5752812d6d9e3bcf9a545cbdcf3afe2175dbc4)

16 years agoAdd variable to define if a share should be hidden.
Andreas Schneider [Fri, 22 Feb 2008 16:35:53 +0000 (17:35 +0100)]
Add variable to define if a share should be hidden.

If you create a share on a Windows machine called foo$ then this share is
of the type STYPE_DISKTREE. So it is possible to administrate this kind of
share. Tested on Windows NT and 2003.

In samba we assume that if a share with a $ at the end must be of the type
STYPE_DISKTREE_HIDDEN. This is wrong, so we need a variable in the config
to define if the share should be hidden or not.
(This used to be commit a3da677bf0faed56e6731ee96708a7847a61d118)

16 years agoRerun make idl. To remove irritating semicolon.
Michael Adam [Tue, 26 Feb 2008 15:04:34 +0000 (16:04 +0100)]
Rerun make idl. To remove irritating semicolon.

Michael
(This used to be commit 3e1f88c90e4c5721381778062edfe6e681c8eec3)

16 years agoAdd libnet_join.idl to the IDL files to be processed by "make idl".
Michael Adam [Tue, 26 Feb 2008 15:02:47 +0000 (16:02 +0100)]
Add libnet_join.idl to the IDL files to be processed by "make idl".

Michael
(This used to be commit 9b47a7329091b2bfe7cd9b2112ac8fa652ed9f60)

16 years agomake idl: Only compile idl files newer than the output to be generated.
Michael Adam [Tue, 26 Feb 2008 15:01:34 +0000 (16:01 +0100)]
make idl: Only compile idl files newer than the output to be generated.

Fix "if" condition in build_idl.sh to not always evaluate as false.

Michael
(This used to be commit 79c199d16e565eabd9fd971247f8df62689bb92a)

16 years agolibreplace: Add tests for connect and gethostbyname.
Michael Adam [Tue, 26 Feb 2008 12:24:54 +0000 (13:24 +0100)]
libreplace: Add tests for connect and gethostbyname.

Provide dummy replacements when a function isnt found.
The functions are also searched for in certain libraries,
and variables SOCKET_LIBS and NSL_LIBS are set accordingly.

One purpose of this is to fix the getifaddrs tests on
systems where e.g. the socket calls require special libs
for linking.

Michael
(This used to be commit c19f7a0e1004213f95e0bf8db5cd1f6697c7a47b)

16 years agoconfigure: put swat-part of config into m4-include file of its own.
Michael Adam [Mon, 25 Feb 2008 16:42:12 +0000 (17:42 +0100)]
configure: put swat-part of config into m4-include file of its own.

Michael
(This used to be commit 622667c0790c0092bfceced8dc6fb05e781ac5e7)

16 years agoFix build on VOS: socklen_t is needed for rep_inet_ntop: move it up.
Michael Adam [Tue, 26 Feb 2008 10:18:51 +0000 (11:18 +0100)]
Fix build on VOS: socklen_t is needed for rep_inet_ntop: move it up.

Michael
(This used to be commit 7b98620ef16c6969fd21dd9c157aedd4adb117a3)

16 years agoFix some typos.
Karolin Seeger [Tue, 26 Feb 2008 09:26:10 +0000 (10:26 +0100)]
Fix some typos.

Karolin
(This used to be commit 71f05a1f9656c4a50dd4b8b08575be6536e92288)

16 years agoFix build on some systems : don't pass libraries to mkproto.awk
Michael Adam [Mon, 25 Feb 2008 16:24:52 +0000 (17:24 +0100)]
Fix build on some systems : don't pass libraries to mkproto.awk

Currently, some static libraries have gone into object lists
that are also passed to make proto. (This should probably be
changed...) Then some awk versions fail when passed an non-
existing lib/libtdb.a e.g.. This patch changes mkproto.sh to
exclude \.a files from the list of files to process.

Michael
(This used to be commit 826b9ab07b58ca39350cca921002a4213ce7c7c9)

16 years agoFix the build on OpenBSD: ENOTSUP is not always defined.
Michael Adam [Mon, 25 Feb 2008 16:05:21 +0000 (17:05 +0100)]
Fix the build on OpenBSD: ENOTSUP is not always defined.

Michael
(This used to be commit 2e4028162f3a93c677a57b96de8f0cb2f892e73b)

16 years agoFix some warnings
Volker Lendecke [Mon, 25 Feb 2008 14:24:49 +0000 (15:24 +0100)]
Fix some warnings

warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result
(This used to be commit ad37b7b0aee265a3e4d8b7552610f4b9a105434d)

16 years agoCorrectly check return of rename(2)
Volker Lendecke [Mon, 25 Feb 2008 12:00:24 +0000 (13:00 +0100)]
Correctly check return of rename(2)

Bug 5279 -- Thanks to Max Matveev
(This used to be commit 71641f04d4e9a41775e898f2e4ac3c8792783cd3)

16 years agoFix inotify detection
Volker Lendecke [Mon, 25 Feb 2008 11:52:55 +0000 (12:52 +0100)]
Fix inotify detection

Bug 5271 -- thanks to Tiziano Müller
(This used to be commit 4a1a138b0fe0f2200e5a37a0609481e4340a896c)

16 years agomake test: pass --option=torture:sharedelay=100000 to samba4 smbtorture
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
(This used to be commit 9b761062df80c45bf2b76af071131d0c78e94a09)

16 years agoDo the formatting change in all 3 places :-)
Volker Lendecke [Mon, 25 Feb 2008 08:55:53 +0000 (09:55 +0100)]
Do the formatting change in all 3 places :-)
(This used to be commit d32066eaef1d09ec41fd5365e18eacd93e485d53)

16 years agoFix confusing error message -- bug 5252
Volker Lendecke [Mon, 25 Feb 2008 08:51:33 +0000 (09:51 +0100)]
Fix confusing error message -- bug 5252

Thanks to Walter Franzini
(This used to be commit 19de47fef1b35c47885acc40760a232e4643079c)

16 years agoAllow "max mux" async i/o requests
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!
(This used to be commit 8f86f7f25c4eb71bbdfcc6bf2d12eaaae9a8d9ec)

16 years agoExport aio_request_done()
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.
(This used to be commit 9a069d306bb6f8a2cd51b8ba87b433884942d13f)

16 years agoFix aix-build of libtalloc.so by exporting all necessary symbols.
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
(This used to be commit 213ba3a719e77979c04b872f1d82f68e87287cb0)

16 years agoAIO on streams does not work (yet...)
Volker Lendecke [Sat, 23 Feb 2008 23:01:07 +0000 (00:01 +0100)]
AIO on streams does not work (yet...)
(This used to be commit 1ba223f202a070a695581e0d7161473a3ebf4332)

16 years agoFix typo
Volker Lendecke [Sat, 23 Feb 2008 20:40:39 +0000 (21:40 +0100)]
Fix typo
(This used to be commit 621db68f32f7007de8b2c4d7cf604a5778725615)

16 years agoFix a C++ warning
Volker Lendecke [Sat, 23 Feb 2008 09:52:12 +0000 (10:52 +0100)]
Fix a C++ warning
(This used to be commit c4cab9e1c1f4975d970665f85838b2dea023d5fc)

16 years agoFix a C++ warning
Volker Lendecke [Sat, 23 Feb 2008 09:50:12 +0000 (10:50 +0100)]
Fix a C++ warning
(This used to be commit ac027a9b2e84d319f961ac0e84654a0e48920138)

16 years agoCheck return value of pipe(2)
Volker Lendecke [Sat, 23 Feb 2008 09:49:00 +0000 (10:49 +0100)]
Check return value of pipe(2)
(This used to be commit 49da21c03a1a5801fba4b12837cccf2887e0d8f0)

16 years agoCheck return value of dup(2)
Volker Lendecke [Sat, 23 Feb 2008 09:47:18 +0000 (10:47 +0100)]
Check return value of dup(2)
(This used to be commit d34701d49cf5b30f5b9963dab5643b4b62704413)

16 years agoFix a C++ warning
Volker Lendecke [Sat, 23 Feb 2008 09:43:58 +0000 (10:43 +0100)]
Fix a C++ warning
(This used to be commit d993b4c3cea6ead74ff1e031ee9a42f2aa39a9f1)

16 years agoCheck the return value of fgets
Volker Lendecke [Sat, 23 Feb 2008 09:42:43 +0000 (10:42 +0100)]
Check the return value of fgets
(This used to be commit b8aaa9a69fd6217ce0387ef8e84f316706186d70)

16 years agomake idl: Check return value of asprintf
Volker Lendecke [Sat, 23 Feb 2008 09:54:59 +0000 (10:54 +0100)]
make idl: Check return value of asprintf
(This used to be commit d9fb7d7bdcd0e54838ff0b1cb64a7e75d8cd726a)

16 years agoFix "used uninitialized" errors.
Jeremy Allison [Sat, 23 Feb 2008 00:19:59 +0000 (16:19 -0800)]
Fix "used uninitialized" errors.
Jeremy.
(This used to be commit 06d15d8a9f94a50337ebf6f651a004bb8b4821f3)

16 years agoFix debug messages.
Jeremy Allison [Sat, 23 Feb 2008 00:12:57 +0000 (16:12 -0800)]
Fix debug messages.
Jeremy.
(This used to be commit d265cedb55b07c6b8a13b9632fbdf8a05fbba886)

16 years agoMerge branch 'v3-2-test' of ssh://jra@git.samba.org/data/git/samba into v3-2-test
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
(This used to be commit bcc5371b8e7f369e8d830d9cf687089514997248)

16 years agoMake sure mount.cifs.c compiles on Fedora 9 with gcc 4.3
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
(This used to be commit ce57d388251063c22f89680e9d1c2129d9879975)

16 years agoDon't use fname after create_file has been called
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...
(This used to be commit 183fe570469963923864b732817a87f8660341ed)

16 years agolibreplace: don't use socketwrapper for getifaddrs() implementations.
Michael Adam [Fri, 22 Feb 2008 12:53:05 +0000 (13:53 +0100)]
libreplace: don't use socketwrapper for getifaddrs() implementations.

Michael
(This used to be commit 85eec1d1d6b674294c50eb912fbe7d5a1dd42909)

16 years agolibreplace: Fix comment originating from old samba source.
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)
(This used to be commit ddf7ac4f266e59871191c6e0a14e99b01a1dc8b1)

16 years agoNot all implementations of struct ifaddrs define ifa_broadaddr.
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
(This used to be commit 25341602ec8752e19ab993872dc2f6c4762785ff)

16 years agoRemove the implementations of _get_interfaces and autoconf test in interfaces.c
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
(This used to be commit 7970901223464745f99cea883b180316189e4b2c)

16 years agolibreplace: fix creation of conftest files for getifaddrs tests.
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
(This used to be commit 26e6ebc7090b5742deb67805d85d809cafb4543d)

16 years agoFix linked list of ifaddrs in implementations of rep_getifaddrs.
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
(This used to be commit ec9f4f5066ba7a8bf3af931fd4969590140c0b2b)

16 years agoAdd missing initalizations of lastif in rep_getifaddr implementations.
Michael Adam [Thu, 21 Feb 2008 23:24:11 +0000 (00:24 +0100)]
Add missing initalizations of lastif in rep_getifaddr implementations.

Michael
(This used to be commit 65710e752f72070cb911867ff9f31f91904ca5c0)

16 years agoMerge branch 'v3-2-test' of ssh://jra@git.samba.org/data/git/samba into v3-2-test
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
(This used to be commit 9dabde1f3e5ba3d98e4e02d8c2a0706dc4f48c18)

16 years agoChange option name.
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
(This used to be commit a2230ccc1700af02f5a5caedd2e66e6f4c14bb5c)

16 years agoMerge branch 'v3-2-test' of ssh://jra@git.samba.org/data/git/samba into v3-2-test
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
(This used to be commit beb0a76b93f9dd054dbc4192516e7008e59b27d9)

16 years agolibreplace: fix compile errors in getifaddrs.c
Michael Adam [Thu, 21 Feb 2008 17:16:10 +0000 (18:16 +0100)]
libreplace: fix compile errors in getifaddrs.c

Michael
(This used to be commit 22cdd4cb507022d9c670b7d5cbc8d357b0b91637)

16 years agoTry and fix getifaddrs check on irix: dont't try to include config.h
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
(This used to be commit 5778c90819a5a5cee38be690f442c571f3a6a051)

16 years agoMove the definition of SMB_LIBRARY to aclocal.m4.
Michael Adam [Thu, 21 Feb 2008 13:07:45 +0000 (14:07 +0100)]
Move the definition of SMB_LIBRARY to aclocal.m4.

Michael
(This used to be commit 4724b13ed8dce4721f95979803ba32f815ceaf1a)

16 years agoconfigure: Abstract configuration of internal libs into an m4 macro.
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
(This used to be commit 54d73769c49eb87ecb33e3229a01214972b53858)

16 years agofix typo
Volker Lendecke [Thu, 21 Feb 2008 10:39:42 +0000 (11:39 +0100)]
fix typo
(This used to be commit 2d51bf67fc33e1f8f28151277fc254b82a04b664)

16 years agoRemove check for secure mkstemp from configure.in.
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
(This used to be commit b5e894cb3b4d447bd8e8c3f461508c4cf3f630c1)

16 years agoRemove mmap check from configure.in
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
(This used to be commit 310c121faf5effeca9ab0df3591c486dd4982749)

16 years agoFix the build on irix: Prevent empty line in TDB_OBJ
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
(This used to be commit 011f24c6c95c92417d877886ad87d2a2dd82056e)

16 years agoFrom: David Disseldorp <ddiss@sgi.com>
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
(This used to be commit d9b72282c63b57c8e54131306b2a3028a1ea41dc)

16 years agoFix double free bugs after calling regfio_close()
Tim Potter [Mon, 18 Feb 2008 09:37:33 +0000 (20:37 +1100)]
Fix double free bugs after calling regfio_close()
(This used to be commit 737bb950d50ac6c5d4f99279bf535ae3a9963b2f)

16 years agoFix memory leaks on error path
Tim Potter [Mon, 18 Feb 2008 10:00:51 +0000 (21:00 +1100)]
Fix memory leaks on error path
(This used to be commit 47dd0700b4320bf5ac9a80e71ae82d82d4554e6a)

16 years agoFix possible close of invalid fd if call to socket() returns -1.
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.
(This used to be commit f7d2f692994918037e603ef95dd097b03d2c5456)

16 years agoFix build with static libs: place tdb static lib after tdb-util objects.
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
(This used to be commit 39eef8e86cfab60c1328d2335a737b41d8fd6db0)

16 years agoconfigure: add --enable-shared-libs to control overall internal use of shared libs.
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
(This used to be commit 63bff18f3f6396736910a8e1f5f2abf453c4f89a)

16 years agoconfigure: Move assemblage of samba version strings to m4 include file.
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
(This used to be commit 8b220717e8dd62455716d4aaf6728087d04fb71b)

16 years agoRemove checks for ino_t, loff_t, offset_t, and comparison_fn_t from configure.in.
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
(This used to be commit 2e6b66eda4dc30f03f1309a1dbef3eb87a4f7d1e)

16 years agoSupport dlopen(NULL, ...) on HPUX.
Jelmer Vernooij [Wed, 20 Feb 2008 19:05:51 +0000 (20:05 +0100)]
Support dlopen(NULL, ...) on HPUX.
(cherry picked from commit 53c70b5f77a3b9abaab783590e66278129173d5f)
(This used to be commit 8883ee2418152d58e2ce609e02105e009f8ca4e8)

16 years agoRemove tests for vsnprintf snprintf asprintf vasprintf and va_copy from configure.
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
(This used to be commit 9b9495d3672e3a8e74d153dbef62825e6b5d5170)

16 years agolibreplace: change samba_cv_ to libreplace_cv_ in libreplace.m4.
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)
(This used to be commit 12ec7dfb109bedd7b086702394a7094a4853cf1f)

16 years agolibreplace: change samba_cv_ to libreplace_cv_ in system/config.m4.
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)
(This used to be commit 450034582ba78b296e9cacc9ea06b632196b8644)

16 years agolibreplace: change samba_cv_ to libreplace_cv_ in getpass.m4.
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)
(This used to be commit d6719f1c2f349c34d7a14e8e0e264db8dbe48598)

16 years agolibreplace: change samba_cv_ to libreplace_cv_ in getifaddrs.m4
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)
(This used to be commit f790cb4aedee58abe6324c47912b58a808bfca51)

16 years agoRemove the getifaddrs checks from configure.in: they are now in lib/replace.
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
(This used to be commit 53c9098253f5a7f84ea8079a755b9d4f0b28fb2c)

16 years agoconfigure: Use SAMBA_CONFIGURE_CPPFLAGS for AC_LIBREPLACE_BROKEN_CHECKS.
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
(This used to be commit af5ec88ece3ecca2b3c5d6585deec10fe851339b)

16 years agolibreplace: Remove double item in case statement.
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
(This used to be commit 69b2ebc797fa986bf395f4d045ea663240e9ec2c)

16 years agoRemove relict SAMBA_CONFIGURE_CPPFLAGS from lib/replace.
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)
(This used to be commit 12e5b9b406d111834c013cbbfe63b759a969ec8e)

16 years agor26554: Fix test for getifaddr on FreeBSD. Patch by Timur Bakeyev.
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)
(This used to be commit bc523382aef16b1260799000650bbebe132799eb)

16 years agor26551: Make sure NULL is defined before using it to test for getifaddrs().
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)
(This used to be commit b4a2ec01fc3c8174cba2a7bda876270fcce90491)

16 years agor26507: Fix function signature for freeifaddrs.
Jelmer Vernooij [Mon, 17 Dec 2007 11:27:59 +0000 (12:27 +0100)]
r26507: Fix function signature for freeifaddrs.
(cherry picked from commit cc873bdd2e86e5b380c3056810ccc5ad98372f7c)
(This used to be commit ccfb04d18516e0aca88ea0a96afe119175bddba7)

16 years agor26497: Fix return type for freeifaddrs().
Jelmer Vernooij [Mon, 17 Dec 2007 07:20:29 +0000 (08:20 +0100)]
r26497: Fix return type for freeifaddrs().
(cherry picked from commit 8c65053f51330bb55a81572264eefbcc56029dc1)
(This used to be commit 57587e49f5942b81508b40e3c9a67e7536f2271d)

16 years agor26495: Add defines for getifaddrs/freeifaddrs.
Jelmer Vernooij [Mon, 17 Dec 2007 06:45:05 +0000 (07:45 +0100)]
r26495: Add defines for getifaddrs/freeifaddrs.
(cherry picked from commit c9e5a3078f7baa83743658d5648f0eefdeb05d2f)
(This used to be commit f2f552106820d1a8f07bccc1a3ad9b45582c8b30)

16 years agor26492: Some hosts have a define called ifa_dstaddr.
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)
(This used to be commit 839d128a42aa624e3cd978700059f947022ee733)

16 years agor26491: Fix syntax.
Jelmer Vernooij [Mon, 17 Dec 2007 05:30:50 +0000 (06:30 +0100)]
r26491: Fix syntax.
(cherry picked from commit 2513230e286179747bb84e4e87121b80bea8f3f0)
(This used to be commit d9c3b27c3fafb3adb7bc6521f5be97aec7fe8bfc)

16 years agor26487: Cope with systems that don't have struct sockaddr.sa_len.
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)
(This used to be commit ce222d07ba73b34894454e4fcb43046f0f22c0e7)

16 years agor26470: Update README.
Jelmer Vernooij [Sun, 16 Dec 2007 13:50:11 +0000 (14:50 +0100)]
r26470: Update README.
(cherry picked from commit 51a78cfc3e72d6b32ef6c7a6079165a36863b908)
(This used to be commit 556b6b9a2fe5dd9da85b1605d91a7216a6c6d308)

16 years agor26469: Fix paths, only include IPv4 addresses for now.
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)
(This used to be commit a2d6f6b4ae7fb6711d4228b9e255eebb6bf344bd)

16 years agor26468: Match getifaddrs more closely, add trivial test.
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)
(This used to be commit 3f9c0c210022905c7811b2e07b3b655929daf930)

16 years agor26467: Use getifaddrs() for interface enumeration and provide replacements for platf...
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)
(This used to be commit 789bf2d36bd728cc68b58cfb1e9570b90ca09af7)

16 years agoconfigure: Move path (and debug) checks to an m4 include file check_path.m4.
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
(This used to be commit d1db2b78c9dacddc0e24304624a6a0d0a817f774)

16 years agobuild: change selftest_prefix from ./ to ./st .
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
(This used to be commit 1f3bfa024d61ccb87655db2c616b28adb50d6783)

16 years agoconfigure: move debug check to developer check
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
(This used to be commit bf1bb2c0906dd5e518c3f35ef97d69eba0e2efdf)

16 years agoconfigure: Also set debug=yes for --enable-developer and --enable-krb5developer.
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
(This used to be commit ad45d056df64aeed2e2c97ab69f82013791616ab)

16 years agoconfigure: add default for developer and krb5developer
Michael Adam [Tue, 19 Feb 2008 15:43:39 +0000 (16:43 +0100)]
configure: add default for developer and krb5developer

Michael
(This used to be commit e9b06ac113e375de11bb847c6f625f7861502853)

16 years agoconfigure: move more developer/test related checks up before the compiler checks.
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
(This used to be commit 05e3095e21330c162624338160ab48d197cf0507)

16 years agoMove the --enable-debug check up above all compiler checks.
Michael Adam [Tue, 19 Feb 2008 15:35:55 +0000 (16:35 +0100)]
Move the --enable-debug check up above all compiler checks.

Michael
(This used to be commit fb74f8dd6a612db0d79b091dd9972bb3204818fb)

16 years agoconfigure: Introduce "debug" variable set to yes by --enable-debug.
Michael Adam [Tue, 19 Feb 2008 15:34:43 +0000 (16:34 +0100)]
configure: Introduce "debug" variable set to yes by --enable-debug.

Michael
(This used to be commit b33db84c222af21cc3dd8233d6ff96e6f32ea3cd)

16 years agoconfigure: move AC_SUBST's of certain directories to the corresponding checks.
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
(This used to be commit 28c862704c27aaffc858650d0a4f4cc7893bb406)

16 years agoMove AC_ENABLE_SHARED and AC_DISABLE_STATIC to a more appropriate place.
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
(This used to be commit 3ba8fa1c4b9ac46133b17112ef3494a4c23dc314)

16 years agoconfigure.in: move definition of build dir up.
Michael Adam [Tue, 19 Feb 2008 14:58:02 +0000 (15:58 +0100)]
configure.in: move definition of build dir up.

Michael
(This used to be commit 35327e8fee778cb46e181add7d1987c843384989)

16 years agoRemove unused m4 macro files.
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
(This used to be commit aeb3673b3686f463e6c7811d61c01d8d6aec0eb3)

16 years agoUpdate position information also for AIO
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!
(This used to be commit e2ca12c2345c0e3916dd09d097b2ba1ce2989fa8)