sfrench/samba-autobuild/.git
16 years agoAdd and modify comments in net_conf.c
Michael Adam [Sun, 13 Jan 2008 22:45:57 +0000 (23:45 +0100)]
Add and modify comments in net_conf.c

Michael
(This used to be commit b3afc8391d40745328172ba012f0ffc166d75aa9)

16 years agoAdd explicit creation of shares to net conf import function.
Michael Adam [Sun, 13 Jan 2008 22:30:08 +0000 (23:30 +0100)]
Add explicit creation of shares to net conf import function.

It has been removed from libnet_conf_set_parameter().

Michael
(This used to be commit b5c533b06cba9a8ffd28a1fb3bc56ab248340775)

16 years agoMake use of the new libnet_conf_delete_global_parameter() function.
Michael Adam [Sun, 13 Jan 2008 22:20:51 +0000 (23:20 +0100)]
Make use of the new libnet_conf_delete_global_parameter() function.

Michael
(This used to be commit aed01fd28c8e896e993239cbe9b2681132ddf980)

16 years agoAdd a function libnet_conf_delete_global_parameter() to libnet_conf.c
Michael Adam [Sun, 13 Jan 2008 22:16:01 +0000 (23:16 +0100)]
Add a function libnet_conf_delete_global_parameter() to libnet_conf.c

Create the [global] section if it does not yet exist.

Michael
(This used to be commit 90fa2981c949e21f66a44d634ebe9d661819f0a3)

16 years agoAdd a function libnet_conf_get_global_parameter() to libnet_conf.c
Michael Adam [Sun, 13 Jan 2008 22:12:27 +0000 (23:12 +0100)]
Add a function libnet_conf_get_global_parameter() to libnet_conf.c

It creates the [global] section if it does not yet exist.

Michael
(This used to be commit 627a29b690c30f1096a4746186089cd9a1c92407)

16 years agoMove libnet_conf_set_global_parameter() inside libnet_conf.c
Michael Adam [Sun, 13 Jan 2008 22:00:16 +0000 (23:00 +0100)]
Move libnet_conf_set_global_parameter() inside libnet_conf.c

Also remove the "convenience function" section comment.
The set_global_parameter function now has a right to exist
in the api.

Michael
(This used to be commit fd99c1804ae04b7c2a2b0a605e83ba88fa362edb)

16 years agoAdd a comment header to libnet_conf_set_global_parameter().
Michael Adam [Sun, 13 Jan 2008 21:56:56 +0000 (22:56 +0100)]
Add a comment header to libnet_conf_set_global_parameter().

Michael
(This used to be commit c050b148d00c79571ef0e85c6e7c86d551ca6efd)

16 years agoAdd auto-adding of [global] to libnet_conf_set_global_parameter().
Michael Adam [Sun, 13 Jan 2008 21:56:11 +0000 (22:56 +0100)]
Add auto-adding of [global] to libnet_conf_set_global_parameter().

Michael
(This used to be commit ad2497cfac90b2e91be6995931629453fd6ed5fa)

16 years agoRemove auto-generation of missing share from libnet_conf_set_parameter().
Michael Adam [Sun, 13 Jan 2008 21:49:42 +0000 (22:49 +0100)]
Remove auto-generation of missing share from libnet_conf_set_parameter().

Günther, I wanted to have this as atomic as possible.
I will add this behaviour to libnet_conf_set_global_parameter() next
with the justification that [global] should exist transparently.

Michael
(This used to be commit e2b34e9c028d712c7c8b22aade2c11d347ae176d)

16 years agoFix the max_dead_record calculations
Volker Lendecke [Wed, 9 Jan 2008 22:00:48 +0000 (23:00 +0100)]
Fix the max_dead_record calculations
(This used to be commit 4aaf4e7e73a5c7fa97ef730fbff5c7cb12df2d6c)

16 years agoFix Compiler warnings by including the proper header.
Michael Adam [Sun, 13 Jan 2008 11:52:25 +0000 (12:52 +0100)]
Fix Compiler warnings by including the proper header.

Michael
(This used to be commit edaf52a301a38824c8beb30c49fba27c8fb0461a)

16 years agoIntroduce a libnet_conf context created by libnet_conf_open().
Michael Adam [Sun, 13 Jan 2008 00:40:05 +0000 (01:40 +0100)]
Introduce a libnet_conf context created by libnet_conf_open().

The libnet_conf_ctx stores the information necessary to interoperate
with the configuration. It is created by calling libnet_conf_open()
and destroyed by calling libnet_conf_close(). The context is passed
to all the libnet_conf functions. It currently stores the token to
access the registry. Later, it could store more data, e.g. the server
to connect to, credentials, and so on. For support of other backends
than registry or support of remote configuration, only the open
function will have to be changed.

In net_conf, the calls to the actual net_conf functions is wrapped
into a function that calls libnet_conf_open()/_close(). Thus an
individual variant of net_conf_runfunction2() and functable2 is
used to cope with functions being called by the wrapper with the
additional libnet_conf_ctx argument.

Michael
(This used to be commit c2a9346faa26e79af5948197a1b322e545f0ed09)

16 years agoidl: Replace non-standard "declare" keyword with typedef and regenerate.
Jelmer Vernooij [Sun, 13 Jan 2008 00:22:23 +0000 (01:22 +0100)]
idl: Replace non-standard "declare" keyword with typedef and regenerate.
(This used to be commit 7e75acfdd1910b3b5908c02d5f343f014eb77841)

16 years agoDon't early delete the share mode tdb data
Volker Lendecke [Sat, 12 Jan 2008 22:06:33 +0000 (23:06 +0100)]
Don't early delete the share mode tdb data

We now refer directly to the file name in the tdb data, so don't delete it.
(This used to be commit 71de4946cf00cf8b7bb2f2d92832166bee12e84a)

16 years agoTrivial simplification
Volker Lendecke [Sat, 12 Jan 2008 22:05:23 +0000 (23:05 +0100)]
Trivial simplification
(This used to be commit 616bc34744487450edd47e212a29c0f57eabb722)

16 years agoRemove an unused variable
Volker Lendecke [Sat, 12 Jan 2008 18:12:30 +0000 (19:12 +0100)]
Remove an unused variable
(This used to be commit 24e719a1d432d5de022ab903457df0dd67c24b85)

16 years agoGet the inbuf on talloc_tos()
Volker Lendecke [Sat, 12 Jan 2008 20:09:43 +0000 (21:09 +0100)]
Get the inbuf on talloc_tos()
(This used to be commit 883f7415769ad1e714f636e9d6fbd1f075e69d1e)

16 years agoConvert OpenDir to talloc, use talloc_tos()
Volker Lendecke [Sat, 12 Jan 2008 16:08:04 +0000 (17:08 +0100)]
Convert OpenDir to talloc, use talloc_tos()

This cuts some mallocs on NtCreate&X
(This used to be commit 8e64107b7846d8f9cce71aabc95b28b7488d01ce)

16 years agoRestructure dbwrap_rbt
Volker Lendecke [Sat, 12 Jan 2008 09:38:17 +0000 (10:38 +0100)]
Restructure dbwrap_rbt

In this low-level code, play tricks to reduce the number of allocations to the
possible minimum. I would not recommend this for higher-level code, but here it
pays off.
(This used to be commit 71b1e6ff1595fbaa8dd49b996c45541531c7e98c)

16 years agoOne more empty line
Volker Lendecke [Fri, 11 Jan 2008 11:02:56 +0000 (12:02 +0100)]
One more empty line
(This used to be commit 10b6f52910b4d29da4ea74740a174654dd1d8e8e)

16 years agodelete on close even prevents stat opens
Volker Lendecke [Fri, 11 Jan 2008 11:35:04 +0000 (12:35 +0100)]
delete on close even prevents stat opens
(This used to be commit 85fe7f3f6ed4aae76e5cf31ab689b2dfacfd74de)

16 years agoThere's no point in calling FLOCK on a non-existing fd
Volker Lendecke [Fri, 11 Jan 2008 20:53:29 +0000 (21:53 +0100)]
There's no point in calling FLOCK on a non-existing fd
(This used to be commit 9ff79f231f1206631662b5c521ecddf5df9141c0)

16 years agoCID 458. Don't leak dlopen handles on failing to load
Jeremy Allison [Sat, 12 Jan 2008 08:15:46 +0000 (00:15 -0800)]
CID 458. Don't leak dlopen handles on failing to load
module.
Jeremy.
(This used to be commit 8809eaeb154ea12543455f589e31172dc905d83a)

16 years agoFix CID 469. new_acct can't be NULL here.
Jeremy Allison [Sat, 12 Jan 2008 08:09:35 +0000 (00:09 -0800)]
Fix CID 469. new_acct can't be NULL here.
Jeremy.
(This used to be commit c79e9414c4baed6e61fc6a3f766395b873bcc4ea)

16 years agoFix CID 470. resolve_order can't be NULL here so simplify code.
Jeremy Allison [Sat, 12 Jan 2008 08:05:07 +0000 (00:05 -0800)]
Fix CID 470. resolve_order can't be NULL here so simplify code.
Jeremy.
(This used to be commit 2e75f3ecdf9890b9d7d4bd03f3fa15ef74816d5d)

16 years agoFix CID 475. work should not be checked against NULL
Jeremy Allison [Sat, 12 Jan 2008 07:56:48 +0000 (23:56 -0800)]
Fix CID 475. work should not be checked against NULL
here as it can never be null.
Jeremy.
(This used to be commit ecb52f50fe3ec8beda48b6c88e9a3ae5a6a98d52)

16 years agoFix CID 476. Ensure a valid pac_data pointer is always passed to
Jeremy Allison [Sat, 12 Jan 2008 07:53:27 +0000 (23:53 -0800)]
Fix CID 476. Ensure a valid pac_data pointer is always passed to
ads_verify_ticket as it's always derefed.
Jeremy.
(This used to be commit 0599d57efff0f417f75510e8b08c3cb7b4bcfcd8)

16 years agoCoverity 512, uninitialized var.
Jeremy Allison [Sat, 12 Jan 2008 07:43:33 +0000 (23:43 -0800)]
Coverity 512, uninitialized var.
Jeremy.
(This used to be commit 1b7cc80c61ccbf766801080f5a3f0260f40ccc17)

16 years agoStop Coverity complaining about uninitialized variables.
Jeremy Allison [Sat, 12 Jan 2008 07:41:17 +0000 (23:41 -0800)]
Stop Coverity complaining about uninitialized variables.
Jeremy.
(This used to be commit 041f1d298c1e72adb263b32f454cdf3603e45416)

16 years agoFix CID 498. Ensure we don't prs_mem_free an uninitialized
Jeremy Allison [Sat, 12 Jan 2008 07:24:13 +0000 (23:24 -0800)]
Fix CID 498. Ensure we don't prs_mem_free an uninitialized
prs_struct.
Jeremy.
(This used to be commit 7b9d9fba230b9e61079869a6a2751cda37fb8a9e)

16 years agoFix CID 505 - don't copy uninitialized memory.
Jeremy Allison [Sat, 12 Jan 2008 07:17:23 +0000 (23:17 -0800)]
Fix CID 505 - don't copy uninitialized memory.
Jeremy.
(This used to be commit 0d2c77e8d3a83f2c5e78fa076f22919ef9d124b9)

16 years agoFix CID 523 - wrong null deref check.
Jeremy Allison [Sat, 12 Jan 2008 06:50:13 +0000 (22:50 -0800)]
Fix CID 523 - wrong null deref check.
Jeremy.
(This used to be commit 05cadffeab38ca9df7ffd46785b536266c4438c4)

16 years agoFix CID 524 - reference before allocation fail null check.
Jeremy Allison [Sat, 12 Jan 2008 06:47:25 +0000 (22:47 -0800)]
Fix CID 524 - reference before allocation fail null check.
Jeremy.
(This used to be commit a5cd3c9b65538588a6c982c6d20022e7476cf3de)

16 years agoEnsure we don't access an uninitialized variable
Jeremy Allison [Sat, 12 Jan 2008 06:44:33 +0000 (22:44 -0800)]
Ensure we don't access an uninitialized variable
(CID 535 - actually false but easy to shut up :-).
Jeremy.
(This used to be commit 4038bb3a9485943db58d9fe30947e11522ce283d)

16 years agoMerge branch 'v3-2-test' of ssh://jra@git.samba.org/data/git/samba into v3-2-test
Jeremy Allison [Sat, 12 Jan 2008 06:38:42 +0000 (22: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 08645826817d42c9d4b42ea0fd5e633d7fd08d35)

16 years agoFix some indents.
Günther Deschner [Sat, 12 Jan 2008 01:24:55 +0000 (02:24 +0100)]
Fix some indents.

Guenther
(This used to be commit 57368f883fb217b4196858bb2255c0eea59a8917)

16 years agoCall dsgetdcname when we have no specific dc defined for joining.
Günther Deschner [Sat, 12 Jan 2008 01:22:44 +0000 (02:22 +0100)]
Call dsgetdcname when we have no specific dc defined for joining.

Guenther
(This used to be commit 40e8caa2d81168be3e48ececf5746d8f659a96d6)

16 years agoFix some error strings in libnet_join.
Günther Deschner [Sat, 12 Jan 2008 01:20:33 +0000 (02:20 +0100)]
Fix some error strings in libnet_join.

Guenther
(This used to be commit 8af80976a3a8dd9d02a6763e48b2c1d8003ae4dd)

16 years agoAdd appropriate error code when pre-creating accounts in ous isnt supported by DC.
Günther Deschner [Sat, 12 Jan 2008 01:19:21 +0000 (02:19 +0100)]
Add appropriate error code when pre-creating accounts in ous isnt supported by DC.

Guenther
(This used to be commit 4a7acf4a2374138b20a5cdebdcc721668bbd865b)

16 years agoFor libnet_join error string functions, make sure not to overwrite last status string.
Günther Deschner [Sat, 12 Jan 2008 01:17:10 +0000 (02:17 +0100)]
For libnet_join error string functions, make sure not to overwrite last status string.

Guenther
(This used to be commit a9b76c9e2d93c8aa482dbee54f29d7e1503abe4f)

16 years agoMerge all ads related calls in libnet_join_post_processing_ads().
Günther Deschner [Sat, 12 Jan 2008 01:15:42 +0000 (02:15 +0100)]
Merge all ads related calls in libnet_join_post_processing_ads().

Guenther
(This used to be commit b76250f1cf7238613658901b961d68a0da592712)

16 years agoUse WITH_ADS define in libnet_join, hopefully not breaking the build.
Günther Deschner [Sat, 12 Jan 2008 01:10:17 +0000 (02:10 +0100)]
Use WITH_ADS define in libnet_join, hopefully not breaking the build.

Guenther
(This used to be commit 48f638a45525c01db9855e3ef809f08ce65da8d8)

16 years agoAuto-add missing shares in libnet_conf_set_parameter().
Günther Deschner [Sat, 12 Jan 2008 00:28:20 +0000 (01:28 +0100)]
Auto-add missing shares in libnet_conf_set_parameter().
Michael, please have a look.

Guenther
(This used to be commit 9f4506e5e2828e0f23bc37586770995c3424b208)

16 years agoAdd debug bool flag for libnetjoin ctx.
Günther Deschner [Fri, 11 Jan 2008 17:51:15 +0000 (18:51 +0100)]
Add debug bool flag for libnetjoin ctx.

Guenther
(This used to be commit 93084487952f4ef23209401d689b3be3af6c9e6e)

16 years agoUse domain_is_ad one more time in libnetjoin.
Günther Deschner [Fri, 11 Jan 2008 17:49:20 +0000 (18:49 +0100)]
Use domain_is_ad one more time in libnetjoin.

Guenther
(This used to be commit 82bd6322b691506ddea2b274973e614fa8c6ee5e)

16 years agoSync tdb with the tdb changes in ctdb. Spoke to tridge about
Jeremy Allison [Fri, 11 Jan 2008 23:08:37 +0000 (15:08 -0800)]
Sync tdb with the tdb changes in ctdb. Spoke to tridge about
this. Fixes insidious problem with order n^2 freelist merging.
Jeremy.
(This used to be commit c6609c042b128e7d63eb64cfdfb0f6b65cb59d76)

16 years agoRemove code accidentially submittet with last commit 83aed537c16f63.
Michael Adam [Fri, 11 Jan 2008 18:02:26 +0000 (19:02 +0100)]
Remove code accidentially submittet with last commit 83aed537c16f63.

This is ist still in preparation and will follow soon. Soory!

Michael
(This used to be commit 75acdb54a454ffda9d422fcafb573c8f5581d2e8)

16 years agoFix panic in "net conf": Fix logic in error condition.
Michael Adam [Fri, 11 Jan 2008 17:55:20 +0000 (18:55 +0100)]
Fix panic in "net conf": Fix logic in error condition.

Michael
(This used to be commit 83aed537c16f632599484f60c5ccebc3ab713801)

16 years agoFix a build warning.
Günther Deschner [Fri, 11 Jan 2008 17:46:41 +0000 (18:46 +0100)]
Fix a build warning.

Guenther
(This used to be commit 88874a501d0c086f796e4838af8c9399d3cccc1f)

16 years agoAs long as DsGetDcName is not part of libnetapi, lowercase the fn name.
Günther Deschner [Fri, 11 Jan 2008 14:32:20 +0000 (15:32 +0100)]
As long as DsGetDcName is not part of libnetapi, lowercase the fn name.

Guenther
(This used to be commit 19a980f52044a170618629e5b0484c1f6b586e5f)

16 years agoFix libnetapi error string callers.
Günther Deschner [Fri, 11 Jan 2008 14:28:24 +0000 (15:28 +0100)]
Fix libnetapi error string callers.

Guenther
(This used to be commit 1ad7a0a361edfa5ac738f011db1d6a9db256ac2c)

16 years agoRemove '\n' from error strings in libnet_join context.
Günther Deschner [Fri, 11 Jan 2008 14:03:31 +0000 (15:03 +0100)]
Remove '\n' from error strings in libnet_join context.

Guenther
(This used to be commit 9cc0d874f6c064e8752d36e72fcc85bf4c85e656)

16 years agoSet error string when ads_leave_realm() has failed in libnetjoin.
Günther Deschner [Fri, 11 Jan 2008 13:50:10 +0000 (14:50 +0100)]
Set error string when ads_leave_realm() has failed in libnetjoin.

Guenther
(This used to be commit 01690f85bc7d052d4c57181d74aef27d1776169c)

16 years agoInclude some basic headers in netapi.h.
Günther Deschner [Fri, 11 Jan 2008 13:47:52 +0000 (14:47 +0100)]
Include some basic headers in netapi.h.

Guenther
(This used to be commit 23b92a6fa57858c8a23c737a9cd00c076ef5dadd)

16 years agoRefactor libnetapi error string functions a bit.
Günther Deschner [Fri, 11 Jan 2008 13:47:23 +0000 (14:47 +0100)]
Refactor libnetapi error string functions a bit.

Guenther
(This used to be commit 3b450a8bcc97b6d03c4b7b9373a3a382c0fcea30)

16 years agoIgnore result of libnet_conf_delete_parameter here, as realm may be not there.
Günther Deschner [Fri, 11 Jan 2008 13:43:56 +0000 (14:43 +0100)]
Ignore result of libnet_conf_delete_parameter here, as realm may be not there.

Guenther
(This used to be commit 2e2d058b7e90a158612af4b0a489578431f748e5)

16 years agoRemove some more references to global_myname() in libnet_join.
Günther Deschner [Fri, 11 Jan 2008 13:42:48 +0000 (14:42 +0100)]
Remove some more references to global_myname() in libnet_join.

Guenther
(This used to be commit ed4960baccf687b77c2b0f4ee64cbce2005f3abb)

16 years agoUse domain_is_ad bool.
Günther Deschner [Fri, 11 Jan 2008 13:41:34 +0000 (14:41 +0100)]
Use domain_is_ad bool.

Guenther
(This used to be commit 9707a5eb008788460937104575b7afd733a9f741)

16 years agoAdd domain_is_ad bool to libnetjoin ctx.
Günther Deschner [Fri, 11 Jan 2008 13:40:06 +0000 (14:40 +0100)]
Add domain_is_ad bool to libnetjoin ctx.

Guenther
(This used to be commit 16ca8d2746a5c2fc7a583d1cf2ebb4d3aa003842)

16 years agoMerge branch 'v3-2-test' of ssh://jra@git.samba.org/data/git/samba into v3-2-test
Jeremy Allison [Fri, 11 Jan 2008 00:36:05 +0000 (16:36 -0800)]
Merge branch 'v3-2-test' of ssh://jra@git.samba.org/data/git/samba into v3-2-test
(This used to be commit 767e0164adf8803df50b0b7bd8e81d25af72bb78)

16 years agoDon't switch user contexts unless you have to. Saves
Jeremy Allison [Fri, 11 Jan 2008 00:35:54 +0000 (16:35 -0800)]
Don't switch user contexts unless you have to. Saves
a bunch of syscalls on close. Noticed by Volker.
Jeremy.
(This used to be commit 3caeeaea162e2083a087c242b850c107a3be1bf9)

16 years agoCombine fsp and tofd to tofsp in SMB_VFS_RECVFILE().
Michael Adam [Fri, 11 Jan 2008 00:26:54 +0000 (01:26 +0100)]
Combine fsp and tofd to tofsp in SMB_VFS_RECVFILE().

Michael
(This used to be commit 3958abffaf2866c69ad9e13ec345364fde5c78bb)

16 years agoRemove now redundant parameter fd from prime_cache().
Michael Adam [Thu, 10 Jan 2008 23:56:06 +0000 (00:56 +0100)]
Remove now redundant parameter fd from prime_cache().

Michael
(This used to be commit 63acaf1b9755cd5be5342929e1210afa06e170f3)

16 years agoCombine fsp and fromfd to fromfsp in SMB_VFS_SENDFILE().
Michael Adam [Thu, 10 Jan 2008 23:51:19 +0000 (00:51 +0100)]
Combine fsp and fromfd to fromfsp in SMB_VFS_SENDFILE().

Michael
(This used to be commit a52cfb7d777157c93c9dc26c67f457be592dd537)

16 years agoDon't print out debug messages at level 0 if we can't
Jeremy Allison [Thu, 10 Jan 2008 23:15:01 +0000 (15:15 -0800)]
Don't print out debug messages at level 0 if we can't
bind to a socket if we've already bound to one (this
prevents :
bind failed on port 445 socket_addr = 0.0.0.0.
Error = Address already in use
bind failed on port 139 socket_addr = 0.0.0.0.
Error = Address already in use
messages when trying to bind to an IPv4 address
when we've already bound to the IPv6 equivalent.
Jeremy.
(This used to be commit 3936de735a7bb548df8ce7f06f2cc8f7ffdf56cd)

16 years agoFix the build of the cacheprime VFS module after API changes.
Michael Adam [Thu, 10 Jan 2008 22:40:13 +0000 (23:40 +0100)]
Fix the build of the cacheprime VFS module after API changes.

Sorry, that had escaped my attention.

Michael
(This used to be commit 88102b5b7c4eaad5445e9cb96e547dd918abc0c2)

16 years ago--enable-libwbclient-shared
Volker Lendecke [Mon, 7 Jan 2008 17:27:10 +0000 (18:27 +0100)]
--enable-libwbclient-shared

This patch adds the configure option --enable-libwbclient-shared that defaults
to yes. If you set --enable-developer=yes, then you can say
--enable-libwbclient-shared=no to avoid problems you might have with the wrong
shared libaries.

Jerry, is this acceptable to you? If yes, please push.

Thanks!

Volker
(This used to be commit 7a88cd61e09f6db9db38916704ae65e03b33139c)

16 years agoTiny cosmetic fix
Volker Lendecke [Thu, 10 Jan 2008 12:22:51 +0000 (13:22 +0100)]
Tiny cosmetic fix
(This used to be commit c82c1d462be6ddccd6e395b4a9630df91dacbda2)

16 years agoRemove redundant parameter fd from SMB_VFS_WRITE().
Michael Adam [Thu, 10 Jan 2008 14:49:35 +0000 (15:49 +0100)]
Remove redundant parameter fd from SMB_VFS_WRITE().

Michael
(This used to be commit c8ae7d095a2a6a7eac920a68ca7244e3a423e1b1)

16 years agoRemove redundant parameter fd from SMB_VFS_READ().
Michael Adam [Thu, 10 Jan 2008 14:33:51 +0000 (15:33 +0100)]
Remove redundant parameter fd from SMB_VFS_READ().

Michael
(This used to be commit a8fc2ddad8d5f7c6c00cb36c74a32a02d69d1d04)

16 years agoMove transfer_file and transfer_file_internal to a module of their own.
Michael Adam [Thu, 10 Jan 2008 13:27:52 +0000 (14:27 +0100)]
Move transfer_file and transfer_file_internal to a module of their own.

Also, don't auto-generate prototypes of the (two) exported functions
but make a start in having handwritten prototypes in dedicated header
files (not in includes.h ... :-)

Michael
(This used to be commit 395f29d8b768a56af20b37f185eccdc5f37b68d5)

16 years agoReformat some code I just touched.
Michael Adam [Thu, 10 Jan 2008 12:55:46 +0000 (13:55 +0100)]
Reformat some code I just touched.

Michael
(This used to be commit 4ed238b1e46f7680a29ebdbfe9500d16718f9057)

16 years agoMake casts to (void *) explicit to remove compiler warnings.
Michael Adam [Thu, 10 Jan 2008 12:55:16 +0000 (13:55 +0100)]
Make casts to (void *) explicit to remove compiler warnings.

Michael
(This used to be commit cbbfbd7a63fe0fc479a1b63b4552c713633dd6be)

16 years agoFix a really silly typo.
Michael Adam [Thu, 10 Jan 2008 13:18:46 +0000 (14:18 +0100)]
Fix a really silly typo.

Michael
(This used to be commit 7b0af7cdc97d4bbcbd73a9474871217511b92c3a)

16 years agoCorrectly abstract the transfer_file mechanism with callbacks and void ptrs.
Michael Adam [Thu, 10 Jan 2008 12:30:43 +0000 (13:30 +0100)]
Correctly abstract the transfer_file mechanism with callbacks and void ptrs.

This removes the in_fsp and out_fsp global variables hack from smbd/vfs.c.

Michael
(This used to be commit b2e7cdc6e899ca3c16edbb6c8786ff9aa999fa6e)

16 years agouse talloc_tos() in share_access_check()
Volker Lendecke [Sun, 6 Jan 2008 13:17:15 +0000 (14:17 +0100)]
use talloc_tos() in share_access_check()
(This used to be commit ac2bb838d537ca563ad2fe770b3e1c2fe8b1d9e7)

16 years agoSome more talloc_tos()
Volker Lendecke [Sun, 6 Jan 2008 15:15:45 +0000 (16:15 +0100)]
Some more talloc_tos()
(This used to be commit 444e35e7df1f13fc285183da8fb41b30ad99a3fa)

16 years agouse talloc_tos in a few more places
Volker Lendecke [Sun, 6 Jan 2008 13:21:25 +0000 (14:21 +0100)]
use talloc_tos in a few more places
(This used to be commit 65dd869bea351010c67f02046ae4134bdada1a4c)

16 years agoRemove unused string.
Günther Deschner [Thu, 10 Jan 2008 10:13:23 +0000 (11:13 +0100)]
Remove unused string.

Guenther
(This used to be commit 88d6683872f4bb9c3074280f385f73c7af9de784)

16 years agoFix a c++ warning
Volker Lendecke [Thu, 10 Jan 2008 10:35:40 +0000 (11:35 +0100)]
Fix a c++ warning
(This used to be commit ee905a085fff5410d02c3e5fa2664e989de4afd4)

16 years agotalloc_free_children can only reset pool if it's empty
Volker Lendecke [Thu, 10 Jan 2008 10:35:17 +0000 (11:35 +0100)]
talloc_free_children can only reset pool if it's empty
(This used to be commit 0272b46515b4c4515d5cad8e86fab61d8e91e29e)

16 years agoMark talloc_pool memory for valgrind
Volker Lendecke [Thu, 10 Jan 2008 10:34:07 +0000 (11:34 +0100)]
Mark talloc_pool memory for valgrind
(This used to be commit d89e42f1d2faa018c584025296d6be8195cbcf20)

16 years agoFix suspicious Makefile line
Volker Lendecke [Thu, 10 Jan 2008 09:55:20 +0000 (10:55 +0100)]
Fix suspicious Makefile line

If @WINBIND_KRB5_LOCATOR@ is not defined, this leads to a line with just one
tab in.
(This used to be commit af07adaf4293899fcbded666289ffa7479ca0501)

16 years agoForm a proper hierarchy in talloc_stack
Volker Lendecke [Thu, 10 Jan 2008 08:53:51 +0000 (09:53 +0100)]
Form a proper hierarchy in talloc_stack

This way talloc_stackframe() can benefit from a pool put on the stack further
up. No need to remove talloc_stackframe().
(This used to be commit be6fe381168321ae62e079cd977cbef675c532d4)

16 years agoFixup hot paths - add macro for toupper (c < 0x80).
Jeremy Allison [Thu, 10 Jan 2008 01:32:26 +0000 (17:32 -0800)]
Fixup hot paths - add macro for toupper (c < 0x80).
This now matches 3.0.x on my micro-tests.
Jeremy.
(This used to be commit 329b924cba8225002ca40db26c45b31d141a0925)

16 years agoMake use of talloc_pool in the main codepaths. Remove the sub-contexts.
Jeremy Allison [Thu, 10 Jan 2008 01:11:04 +0000 (17:11 -0800)]
Make use of talloc_pool in the main codepaths. Remove the sub-contexts.
Jeremy.
(This used to be commit bc932b8ad4396f76b71c43efe9a6346f89c3632c)

16 years agoMerge branch 'v3-2-test' of ssh://jra@git.samba.org/data/git/samba into v3-2-test
Jeremy Allison [Thu, 10 Jan 2008 01:08:20 +0000 (17:08 -0800)]
Merge branch 'v3-2-test' of ssh://jra@git.samba.org/data/git/samba into v3-2-test
(This used to be commit f98c68a8a4882cb0a1b7e8985f3eba5ebb8287e3)

16 years agoAdd the calls to make use of talloc_pools in a talloc_stackframe.
Jeremy Allison [Thu, 10 Jan 2008 01:07:58 +0000 (17:07 -0800)]
Add the calls to make use of talloc_pools in a talloc_stackframe.
Jeremy.
(This used to be commit d27e6c0548d21394f6399d3b737d175ffed8420d)

16 years agoImplement talloc_pool()
Volker Lendecke [Sat, 5 Jan 2008 17:26:54 +0000 (18:26 +0100)]
Implement talloc_pool()

A talloc pool is a chunk of memory that can be used as a context for further
talloc calls. Allocations with the pool as the parent just chew from that
memory by incrementing a pointer. If the talloc pool is full, then we fall back
to the normal system-level malloc(3) to get memory.

The use case for talloc pools is the transient memory that is used for handling
a single SMB request. Incrementing a pointer will be way faster than any malloc
implementation.

There is a downside of this: If you use talloc_steal() to move something out of
the pool, the whole pool memory is kept around until the last object inside the
pool is freed. So if you talloc_free() the pool, it might happen that the
memory is freed later. So don't hang anything off a talloc pool that should
live long.

Volker
(This used to be commit 287e29d988813007eeebc0c2bef3b46ab8bedee9)

16 years agoTry and fix the AIX build.
Michael Adam [Thu, 10 Jan 2008 00:04:47 +0000 (01:04 +0100)]
Try and fix the AIX build.

The __ss_family workaround is in lib/replace/system/network.h ...

Michael
(This used to be commit 778199cf00196f81fd96deae1370d8cbc438c5bf)

16 years agoEnable building the notify_fam module.
Michael Adam [Wed, 9 Jan 2008 23:45:54 +0000 (00:45 +0100)]
Enable building the notify_fam module.

Found by Timur I. Bakeyev <timur@com.bat.ru>.

Michael
(This used to be commit ece34fd2fe4bcd3f88a31a42faaba89248da3ba9)

16 years agoMerge branch 'v3-2-test' of ssh://jra@git.samba.org/data/git/samba into v3-2-test
Jeremy Allison [Wed, 9 Jan 2008 22:35:37 +0000 (14:35 -0800)]
Merge branch 'v3-2-test' of ssh://jra@git.samba.org/data/git/samba into v3-2-test
(This used to be commit 92fcf22b79809393c734e4005c34a5e7e4aaa912)

16 years agoTry and fix the AIX build.
Jeremy Allison [Wed, 9 Jan 2008 22:35:15 +0000 (14:35 -0800)]
Try and fix the AIX build.
Jeremy.
(This used to be commit 231a148badf1f9b868ed1d37532020defa27bbd6)

16 years agoEnsure we don't take address of one past buffer.
Jeremy Allison [Wed, 9 Jan 2008 22:35:00 +0000 (14:35 -0800)]
Ensure we don't take address of one past buffer.
Jeremy.
(This used to be commit 318cbcfae51fc5dae549c60107d12480d8e478c8)

16 years agoFix the max_dead_record calculations
Volker Lendecke [Wed, 9 Jan 2008 22:00:48 +0000 (23:00 +0100)]
Fix the max_dead_record calculations
(This used to be commit 2a5c53220a5cc2b4a80fc7c6cb38e87789c5e797)

16 years agoTry to fix the build on hosts that HAVE_LDAP but don't HAVE_KRB5.
Michael Adam [Wed, 9 Jan 2008 22:15:56 +0000 (23:15 +0100)]
Try to fix the build on hosts that HAVE_LDAP but don't HAVE_KRB5.

Michael
(This used to be commit 829de79051cd1d1cc67c4c40fdc8e08c44450a09)

16 years agoFix a memleak found by the IBM checker.
Michael Adam [Wed, 9 Jan 2008 21:25:52 +0000 (22:25 +0100)]
Fix a memleak found by the IBM checker.

Michael
(This used to be commit b4a37a66bbd8f5346de743d4ab427d6671e29075)

16 years agoFix memleak in ldapsam_rename_sam_account() found by IBM checker.
Michael Adam [Wed, 9 Jan 2008 21:09:55 +0000 (22:09 +0100)]
Fix memleak in ldapsam_rename_sam_account() found by IBM checker.

The check for out of memory was the wrong way round.

Michael
(This used to be commit d7a7b793203b986823859ac5171d2d4c30e52415)

16 years agoAnother attempt to fix builds w/o ldap and/or krb5.
Günther Deschner [Wed, 9 Jan 2008 11:47:13 +0000 (12:47 +0100)]
Another attempt to fix builds w/o ldap and/or krb5.

Guenther
(This used to be commit e73e3da772bd024f1d74fc41b832f181ba5c43bd)

16 years agoRe-run make idl to get even nicer pidl generated server code.
Günther Deschner [Wed, 9 Jan 2008 11:28:44 +0000 (12:28 +0100)]
Re-run make idl to get even nicer pidl generated server code.

Guenther
(This used to be commit 6169dea4dc3c4fc5eb1caefde828ed896cf048c5)