Jeremy Allison
d25370fb47
Don't evaluate the src argument to fstrcpy/fstrcat/nstrcpy/unstrcpy twice. Prevents side-effects when src is a function call.
2011-05-17 19:01:18 +02:00
Günther Deschner
0092240401
lib/util/charset: fix the toplevel MacOS X build.
...
Guenther
Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Tue May 17 16:16:59 CEST 2011 on sn-devel-104
2011-05-17 16:16:59 +02:00
Stefan Metzmacher
df2cb2f672
talloc: splitout _talloc_free_children_internal()
...
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Tue May 17 10:49:13 CEST 2011 on sn-devel-104
2011-05-17 10:49:13 +02:00
Stefan Metzmacher
38633c9f0b
talloc: fixed a use after free error in talloc_free_children()
...
This is similar to commit 6f51a1f45bf4de062cce7a562477e8140630a53d.
metze
2011-05-17 09:46:04 +02:00
Stefan Metzmacher
f3b855d2ff
talloc: use _talloc_free_internal() in talloc_free_children()
...
metze
2011-05-17 09:46:04 +02:00
Stefan Metzmacher
37b2130ed9
talloc: test talloc_steal out of a talloc_pool
...
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Tue May 17 09:43:01 CEST 2011 on sn-devel-104
2011-05-17 09:43:01 +02:00
Stefan Metzmacher
16cc52cf70
talloc: add memset() calls to test_pool()
...
This way we the pool based valgrind code.
metze
2011-05-17 08:22:25 +02:00
Stefan Metzmacher
c281f2fc1a
talloc: setup the new 'tc' before TC_UNDEFINE_GROW_CHUNK() _talloc_realloc()
...
metze
2011-05-17 08:22:23 +02:00
Stefan Metzmacher
7102105c89
talloc: make really sure only optimize realloc if there's only one pool chunk
...
*talloc_pool_objectcount(pool_tc) == 2 doesn't mean the one of the objects
is the pool itself! So we better check for == 1 and calculate the chunk count.
metze
2011-05-17 08:22:21 +02:00
Stefan Metzmacher
14b662ee4f
talloc: make use of _talloc_free_poolmem() in _talloc_realloc()
...
This should follow the same logic...
metze
2011-05-17 08:22:20 +02:00
Stefan Metzmacher
2d514be1ed
talloc: split the handling of FLAG_POOL/FLAG_POOLMEM in _talloc_free_internal
...
The optimization of the object_count == 1 case should only happen
for when we're not destroying the pool itself. And it should only
happen if the pool itself is still valid.
If the pool isn't valid (it has TALLOC_FLAG_FREE),
object_count == 1 does not mean that the pool is the last object,
which can happen if you use talloc_steal/move() on memory
from the pool and then free the pool itself.
Thanks to Volker for noticing this!
metze
2011-05-17 08:22:18 +02:00
Volker Lendecke
115d0ecf88
Use ZERO_STRUCTP in util_net
2011-05-14 17:57:13 +02:00
Andrew Bartlett
f18cca9a0a
lib/util/charset Move built-in charset modules to the top level
...
This removes the 'charset' subsystem and allows these modules to be
used across the whole of Samba.
Andrew Bartlett
2011-05-13 18:50:23 +02:00
Andrew Bartlett
5db0cd55d4
lib/util/ Fix crash bug caused by gfree_debug()
...
The issue is that we should reset the debug_num_classes to 0 when we
un-initialise the debug system.
Andrew Bartlett
2011-05-13 18:50:23 +02:00
Michael Adam
0791da4fdd
lib/replace: fix an #if HAVE_GSSAPI_GSSAPI_EXT_H to be an #ifdef
2011-05-10 20:54:06 +02:00
Andreas Schneider
419e03ab18
libsmbconf: Define a doxygen group for libsmbconf.
...
Signed-off-by: Michael Adam <obnox@samba.org>
2011-05-10 19:13:26 +02:00
Andreas Schneider
60109a0e6d
libsmbconf: Document smbconf_transaction_cancel().
...
Signed-off-by: Michael Adam <obnox@samba.org>
2011-05-10 19:13:25 +02:00
Andreas Schneider
9bbf4bd0f3
libsmbconf: Document smbconf_transaction_commit().
...
Signed-off-by: Michael Adam <obnox@samba.org>
2011-05-10 19:13:25 +02:00
Andreas Schneider
6babdaf6b7
libsmbconf: Document smbconf_transaction_start().
...
Signed-off-by: Michael Adam <obnox@samba.org>
2011-05-10 19:13:25 +02:00
Andreas Schneider
d9407a5a55
libsmbconf: Document smbconf_delete_global_includes().
...
Signed-off-by: Michael Adam <obnox@samba.org>
2011-05-10 19:13:25 +02:00
Andreas Schneider
3ace1716a0
libsmbconf: Document smbconf_delete_includes().
...
Signed-off-by: Michael Adam <obnox@samba.org>
2011-05-10 19:13:25 +02:00
Andreas Schneider
a606d5219e
libsmbconf: Document smbconf_set_global_includes().
...
Signed-off-by: Michael Adam <obnox@samba.org>
2011-05-10 19:13:25 +02:00
Andreas Schneider
0ab8a8e5ba
libsmbconf: Document smbconf_set_includes().
...
Signed-off-by: Michael Adam <obnox@samba.org>
2011-05-10 19:13:25 +02:00
Andreas Schneider
a7ac2a87c6
libsmbconf: Document smbconf_get_global_includes().
...
Signed-off-by: Michael Adam <obnox@samba.org>
2011-05-10 19:13:25 +02:00
Andreas Schneider
74dc8c351c
libsmbconf: Document smbconf_get_includes().
...
Signed-off-by: Michael Adam <obnox@samba.org>
2011-05-10 19:13:25 +02:00
Andreas Schneider
b7ba46d1c0
libsmbconf: Document smbconf_delete_global_parameter().
...
Signed-off-by: Michael Adam <obnox@samba.org>
2011-05-10 19:13:24 +02:00
Andreas Schneider
d70acdc554
libsmbconf: Document smbconf_delete_parameter().
...
Signed-off-by: Michael Adam <obnox@samba.org>
2011-05-10 19:13:24 +02:00
Andreas Schneider
1cb649f57f
libsmbconf: Document smbconf_get_global_parameter().
...
Signed-off-by: Michael Adam <obnox@samba.org>
2011-05-10 19:13:24 +02:00
Andreas Schneider
8417e3485e
libsmbconf: Document smbconf_get_parameter().
...
Signed-off-by: Michael Adam <obnox@samba.org>
2011-05-10 19:13:24 +02:00
Andreas Schneider
70c5143ea4
libsmbconf: Document smbconf_set_global_parameter().
...
Signed-off-by: Michael Adam <obnox@samba.org>
2011-05-10 19:13:24 +02:00
Andreas Schneider
62f3560e98
libsmbconf: Document smbconf_set_parameter().
...
Signed-off-by: Michael Adam <obnox@samba.org>
2011-05-10 19:13:24 +02:00
Andreas Schneider
7e04bd1f85
libsmbconf: Document smbconf_delete_share().
...
Signed-off-by: Michael Adam <obnox@samba.org>
2011-05-10 19:13:24 +02:00
Andreas Schneider
474805794e
libsmbconf: Document smbconf_get_share().
...
Signed-off-by: Michael Adam <obnox@samba.org>
2011-05-10 19:13:24 +02:00
Andreas Schneider
529e064586
libsmbconf: Document smbconf_create_share().
...
Signed-off-by: Michael Adam <obnox@samba.org>
2011-05-10 19:13:24 +02:00
Andreas Schneider
44fa842ae9
libsmbconf: Document smbconf_share_exists().
...
Signed-off-by: Michael Adam <obnox@samba.org>
2011-05-10 19:13:23 +02:00
Andreas Schneider
211286042d
libsmbconf: Document smbconf_get_share_names().
...
Signed-off-by: Michael Adam <obnox@samba.org>
2011-05-10 19:13:23 +02:00
Andreas Schneider
87c4096092
libsmbconf: Document smbconf_get_config().
...
Signed-off-by: Michael Adam <obnox@samba.org>
2011-05-10 19:13:23 +02:00
Andreas Schneider
938690c771
libsmbconf: Document smbconf_drop().
...
Signed-off-by: Michael Adam <obnox@samba.org>
2011-05-10 19:13:23 +02:00
Andreas Schneider
1b0809bd73
libsmbconf: Document smbconf_changed().
...
Signed-off-by: Michael Adam <obnox@samba.org>
2011-05-10 19:13:23 +02:00
Andreas Schneider
5cd229ca5e
libsmbconf: Document smbconf_shutdown().
...
Signed-off-by: Michael Adam <obnox@samba.org>
2011-05-10 19:13:23 +02:00
Andreas Schneider
25e798e641
libsmbconf: Document smbconf_is_writeable().
...
Signed-off-by: Michael Adam <obnox@samba.org>
2011-05-10 19:13:23 +02:00
Andreas Schneider
7a57ccd2c5
libsmbconf: Document smbconf_backend_requires_messaging().
...
Signed-off-by: Michael Adam <obnox@samba.org>
2011-05-10 19:13:23 +02:00
Andreas Schneider
4d391d29f8
libsmbconf: Convert smbconf_get_config() to sbcErr.
...
Signed-off-by: Michael Adam <obnox@samba.org>
2011-05-10 19:13:22 +02:00
Andreas Schneider
e1f0b91c5f
libsmbconf: Convert smbconf_transaction_*() to sbcErr.
...
Signed-off-by: Michael Adam <obnox@samba.org>
2011-05-10 19:13:22 +02:00
Andreas Schneider
72d15f0c03
libsmbconf: Convert smbconf_delete_includes() to sbcErr.
...
Signed-off-by: Michael Adam <obnox@samba.org>
2011-05-10 19:13:22 +02:00
Andreas Schneider
d911bafea6
libsmbconf: Convert smbconf_set_includes() to sbcErr.
...
Signed-off-by: Michael Adam <obnox@samba.org>
2011-05-10 19:13:22 +02:00
Andreas Schneider
9f9711490a
libsmbconf: Convert smbconf_get_includes() to sbcErr.
...
Signed-off-by: Michael Adam <obnox@samba.org>
2011-05-10 19:13:21 +02:00
Andreas Schneider
e19c4f278b
libsmbconf: Convert smbconf_delete_parameter() to sbcErr.
...
Signed-off-by: Michael Adam <obnox@samba.org>
2011-05-10 19:13:21 +02:00
Andreas Schneider
ff5838d97a
libsmbconf: Convert smbconf_get_parameter() to sbcErr.
...
Signed-off-by: Michael Adam <obnox@samba.org>
2011-05-10 19:13:21 +02:00
Andreas Schneider
ddc28a683f
libsmbconf: Convert smbconf_set_parameter() to sbcErr.
...
Signed-off-by: Michael Adam <obnox@samba.org>
2011-05-10 19:13:21 +02:00