Jeremy Allison
980ac09849
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)
2008-01-09 17:32:26 -08:00
Jeremy Allison
253fbf1a6e
Make use of talloc_pool in the main codepaths. Remove the sub-contexts.
...
Jeremy.
(This used to be commit bc932b8ad4396f76b71c43efe9a6346f89c3632c)
2008-01-09 17:11:04 -08:00
Jeremy Allison
9003e8e50f
Merge branch 'v3-2-test' of ssh://jra@git.samba.org/data/git/samba into v3-2-test
...
(This used to be commit f98c68a8a4882cb0a1b7e8985f3eba5ebb8287e3)
2008-01-09 17:08:20 -08:00
Jeremy Allison
5df6018114
Add the calls to make use of talloc_pools in a talloc_stackframe.
...
Jeremy.
(This used to be commit d27e6c0548d21394f6399d3b737d175ffed8420d)
2008-01-09 17:07:58 -08:00
Volker Lendecke
1ed4fcb271
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)
2008-01-09 17:05:19 -08:00
Michael Adam
ba6eaa6906
Try and fix the AIX build.
...
The __ss_family workaround is in lib/replace/system/network.h ...
Michael
(This used to be commit 778199cf00196f81fd96deae1370d8cbc438c5bf)
2008-01-10 01:04:47 +01:00
Michael Adam
638b57e5d1
Enable building the notify_fam module.
...
Found by Timur I. Bakeyev <timur@com.bat.ru>.
Michael
(This used to be commit ece34fd2fe4bcd3f88a31a42faaba89248da3ba9)
2008-01-10 00:48:03 +01:00
Jeremy Allison
6a10222882
Merge branch 'v3-2-test' of ssh://jra@git.samba.org/data/git/samba into v3-2-test
...
(This used to be commit 92fcf22b79809393c734e4005c34a5e7e4aaa912)
2008-01-09 14:35:37 -08:00
Jeremy Allison
381c38688d
Try and fix the AIX build.
...
Jeremy.
(This used to be commit 231a148badf1f9b868ed1d37532020defa27bbd6)
2008-01-09 14:35:15 -08:00
Jeremy Allison
817e0d899d
Ensure we don't take address of one past buffer.
...
Jeremy.
(This used to be commit 318cbcfae51fc5dae549c60107d12480d8e478c8)
2008-01-09 14:35:00 -08:00
Volker Lendecke
66d6eb27a4
Fix the max_dead_record calculations
...
(This used to be commit 2a5c53220a5cc2b4a80fc7c6cb38e87789c5e797)
2008-01-09 23:24:30 +01:00
Michael Adam
1c4466cedc
Try to fix the build on hosts that HAVE_LDAP but don't HAVE_KRB5.
...
Michael
(This used to be commit 829de79051cd1d1cc67c4c40fdc8e08c44450a09)
2008-01-09 23:15:56 +01:00
Michael Adam
c0c299cb26
Fix a memleak found by the IBM checker.
...
Michael
(This used to be commit b4a37a66bbd8f5346de743d4ab427d6671e29075)
2008-01-09 22:25:52 +01:00
Michael Adam
7c6d77dd88
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)
2008-01-09 22:09:55 +01:00
Günther Deschner
fbd9a15996
Another attempt to fix builds w/o ldap and/or krb5.
...
Guenther
(This used to be commit e73e3da772bd024f1d74fc41b832f181ba5c43bd)
2008-01-09 12:48:08 +01:00
Günther Deschner
3d87cba590
Re-run make idl to get even nicer pidl generated server code.
...
Guenther
(This used to be commit 6169dea4dc3c4fc5eb1caefde828ed896cf048c5)
2008-01-09 12:29:11 +01:00
Karolin Seeger
1ac5e6cdfe
Correct comment. Default debug level of smbclient is 1, not 0.
...
(This used to be commit 9c81125e6d3df49806e1c0b39409ffac8e3a0fd1)
2008-01-09 12:21:44 +01:00
Volker Lendecke
b43719d0fb
Attempt to fix the compile of source/utils/net_dns.c
...
Jeremy, please check!
(This used to be commit 66d3012bf422b2ffc47fa6a405269bad2a80bd6f)
2008-01-09 12:10:55 +01:00
Günther Deschner
28ac552381
Re-run make idl. The pidl generated code now fully complies to coding standards.
...
Guenther
(This used to be commit 3d34c87612138e4457e824e1a6e3981d1c3fe238)
2008-01-09 11:59:52 +01:00
Michael Adam
79180e6563
Fix memory handling in torture/cmd_vfs.c:cmd_open and don't leak fsp_name.
...
Michael
(This used to be commit f93fc818143a7442a6e8a90f16f60c536a5b8f9e)
2008-01-09 11:25:43 +01:00
Volker Lendecke
059be4dda0
Reduce stat cache size default
...
Now that we have a LRU scheme for the stat cache we can live with a lot less
(This used to be commit 9e736aab07b91744d4c14a55f6f7c55f51dd80f6)
2008-01-09 11:25:49 +01:00
Volker Lendecke
c16a00b0af
Replace an uninitialized variable
...
Reported by the IBM checker
(This used to be commit 48f61e4b9fce5ea4f4bc3cf55530bb757c0def07)
2008-01-09 10:34:27 +01:00
Günther Deschner
ba922343db
Add libnet_join_derive_salting_principal().
...
Guenther
(This used to be commit 95129a28cfa57d8e5bd767b92f065abd1d32a569)
2008-01-09 10:20:44 +01:00
Volker Lendecke
cb3c3ccd63
ensure uni_name.buffer is initialised
...
merge from http://samba.org/~tridge/3_0-ctdb
(This used to be commit 2938e74dea1695c813d6220a839b248dbc3b1d8f)
2008-01-09 07:59:12 +01:00
Jeremy Allison
3eb2cfc1ad
Fix CID 461 - resource leak on error.
...
Jeremy.
(This used to be commit eea07b0c83985af60395f8a31de5bac4e5398cff)
2008-01-08 18:51:55 -08:00
Jeremy Allison
b47d491489
Fix CID 460 - resource leak on error.
...
Jeremy.
(This used to be commit d61831164b482d02e0eef3c28aeed93d3e44433f)
2008-01-08 18:48:04 -08:00
Jeremy Allison
2371d31f64
Fix resource leak found by coverity (CID 521).
...
Jeremy.
(This used to be commit acfb233acc7324b8d431d5cb777a1933d173b3dc)
2008-01-08 18:44:19 -08:00
Michael Adam
22068a0c16
Change registry_create_admin_token() to return NTSTATUS.
...
Michael
(This used to be commit 9cd30fb25c42e79946b5140994d0bf2ef4c62f90)
2008-01-09 01:47:10 +01:00
Michael Adam
f269ed866d
Move content of comment.
...
Michael
(This used to be commit ed4dd00c5ae8e4995ace9326f915ae4bd15d96b3)
2008-01-09 01:47:10 +01:00
Michael Adam
f3603d5a5a
Convert add_sid_to_array() add_sid_to_array_unique() to return NTSTATUS.
...
Michael
(This used to be commit 6b2b9a60ef857ec31da5fea631535205fbdede4a)
2008-01-09 01:47:10 +01:00
Michael Adam
de53e47c76
Fix prototype: Add a void to an empty function parameter list.
...
Michael
(This used to be commit 3f89aea8e4df3a2de8c5e4c6f4e417567adb2d67)
2008-01-09 01:47:10 +01:00
Michael Adam
f168fac54c
Don't leak data.dptr on error path.
...
Michael
(This used to be commit d14de0692c623ff07dada45a3d7bec03ceca2b7e)
2008-01-09 01:47:10 +01:00
Michael Adam
3ff1fc3932
Extend a comment.
...
Michael
(This used to be commit 081435250709af734ec1e49e2539b091f2d92dfb)
2008-01-09 01:47:10 +01:00
Michael Adam
2e3ac4d3fe
Add a comment.
...
Michael
(This used to be commit 3a4bf4b7c3081048f0d5491dae6610388c268c2f)
2008-01-09 01:35:43 +01:00
Michael Adam
ebb21268df
Fix talloctort: move size check after referenced ptr check.
...
Michael
(This used to be commit 45b219642c529865a898625eeb0433c60b233867)
2008-01-09 01:34:21 +01:00
Jeremy Allison
7febec3c58
Simplify... plus add a debug message.
...
Jeremy.
(This used to be commit bedc493874adaf783362ba7b821e2a6d985b96ea)
2008-01-08 16:08:39 -08:00
Jeremy Allison
80158198ee
Correctly identify enc/non-enc packets.
...
Jeremy.
(This used to be commit 647f13d0f1a270a68263b3b0403436f9d6cf1a0e)
2008-01-08 15:57:08 -08:00
Volker Lendecke
148f1eee43
Save one popular malloc
...
(This used to be commit 2150663d9eaf5cdab08de2ad1fcc952d7e85936c)
2008-01-09 00:10:43 +01:00
Volker Lendecke
0af2efcdc4
Don't shrink a talloc area if we have less than 1k to gain
...
(This used to be commit 28a72ebd4541fb54f284da49081345e54130c75a)
2008-01-09 00:10:16 +01:00
Volker Lendecke
5274d8cda3
Only realloc the talloc stack if necessary
...
(This used to be commit c7cb98d486ef8af1dc7111c2316fd73db9fef9f8)
2008-01-08 22:18:08 +01:00
Volker Lendecke
35c256226f
Allocate dirp->name_cache on demand only
...
(This used to be commit 1a15778331393f9ece9aac9450828e799b20a058)
2008-01-08 22:18:08 +01:00
Jeremy Allison
7ca33d1112
Move the DNS tsig update to using struct sockaddr_storage
...
from struct in_addr. Still only does IPv4 updates but now
it'll be easy to add IPv6 when we have time.
Jeremy.
(This used to be commit ac3a433befca2c6b674fc7e7f2f2c700d78b0a0c)
2008-01-08 13:11:12 -08:00
Günther Deschner
791fe3119e
Pedantic cosmetics: rerun make idl.
...
Guenther
(This used to be commit d1fa8049b1c0a3cebbc2c64e245e8055c8d3e84b)
2008-01-08 18:08:15 +01:00
Jelmer Vernooij
bfab6ab14b
Merge branch 'v3-2-test' of ssh://git.samba.org/data/git/samba into v3-2-test
...
(This used to be commit ea36c3add588061cf338deabb2d8952f2213a8bd)
2008-01-08 15:43:11 +01:00
Günther Deschner
62c91987d9
Use ads_get_upn() in net_derive_salting_principal().
...
Guenther
(This used to be commit a3b348b113f248d2eccffd6073560619a97a2976)
2008-01-08 14:07:18 +01:00
Günther Deschner
697208406c
Fix define check s/WITH_LDAP/HAVE_LDAP/ in libnet_join.
...
Guenther
(This used to be commit 045a69c59c3b0732bb12a8b0efc8c9675e811719)
2008-01-08 14:07:09 +01:00
Günther Deschner
f89fa0a6f8
Do not ignore provided machine_name in ads_get_upn().
...
Guenther
(This used to be commit ddc1307844379f99b3dde48fc351d0326d22a7ce)
2008-01-08 14:07:01 +01:00
Günther Deschner
17e8104d9b
Correctly talloc ctx->remote_path in libgpo (thanks Michael for the pointer).
...
Guenther
(This used to be commit 2ea57a76a6bc8f9c835818780fcc9324896d5c1f)
2008-01-08 12:26:25 +01:00
Michael Adam
4a056e127a
Remove redundant parameter fd from SMB_VFS_AIO_CANCEL().
...
Michael
(This used to be commit 3c997ae0002d4c50e8899600c17ddf74ac61f6f0)
2008-01-08 12:20:55 +01:00
Günther Deschner
67f2afe3c4
Correctly free buffers in netdomjoin-gui.
...
Guenther
(This used to be commit 04d78d4d9a8cffe44c927036038aef1d6d6b44b2)
2008-01-08 11:59:01 +01:00