summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* lib/util/ Fix crash bug caused by gfree_debug()Andrew Bartlett2011-11-191-1/+1
| | | | | | | | | | The issue is that we should reset the debug_num_classes to 0 when we un-initialise the debug system. Andrew Bartlett (cherry picked from commit 5db0cd55d4db9cc71f32dc0097e2f014c22967bc) Fix bug #8623 (Crash when trying to browse samba printers).
* Fix bug 8433, segfault in iconv.cVolker Lendecke2011-09-011-1/+0
| | | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Thu Sep 1 18:25:34 CEST 2011 on sn-devel-104 (cherry picked from commit 1d4de78f567e908e0acc218630fceb0884b07d65)
* s3: Fix bug 8385Volker Lendecke2011-08-301-26/+14
| | | | | | | | | | | | | Poll and select behave differently regarding error handling. When doing the connect(2), we can not rely on poll telling us both readability and writability upon error. Just always try a second connect(2). At least on Linux it returns 0 when it succeeded. Signed-off-by: Jeremy Allison <jra@samba.org> Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Thu Aug 25 19:39:12 CEST 2011 on sn-devel-104 (cherry picked from commit 50e30afa608dfdeae8a260730ead9761ed424dad)
* talloc: check block count aftter references testAndrew Tridgell2011-08-201-0/+1
| | | | | | | | Pair-Programmed-With: Amitay Isaacs <amitay@gmail.com> (cherry picked from commit 73677875b46251f59b66c9713f1decc89bd2ea3e) The last 7 patches address bug #8384 (Windows XP clients seem to crash smbd process every once in a while).
* talloc: added test suite for talloc_free_children()Andrew Tridgell2011-08-201-0/+44
| | | | | | | | this tests the fix from Simo Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Fri Jul 29 11:30:13 CEST 2011 on sn-devel-104 (cherry picked from commit d004fd0b53fb6f3ae64f0e24cf51f4471d434574)
* Fix license info for talloc in manpage.Jelmer Vernooij2011-08-201-3/+3
| | | | | | Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Sun Apr 24 03:27:54 CEST 2011 on sn-devel-104 (cherry picked from commit fb05e82c99f0779bd44371a2bdafdd7147448dd5)
* talloc - improve doxygen comment of "talloc_move"Matthias Dieter Wallnöfer2011-08-201-3/+3
| | | | | | | Express better that this should be a pointer of a pointer. Reviewed-by: Tridge (cherry picked from commit 6723e90d524c8e73f19c06b3ff28867a1a89b14b)
* talloc - some documentation changesMatthias Dieter Wallnöfer2011-08-202-53/+48
| | | | | | | | | | | | - Fix some typos - Document better the differences in the behaviour between talloc 1.X and 2.X. Previously this seemed a bit spongy to me. Reviewed-by: Jelmer + Tridge Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org> Autobuild-Date: Mon Apr 4 11:05:42 CEST 2011 on sn-devel-104 (cherry picked from commit 513574afd759bcb3832374d3ae170f1ed0b0062b)
* talloc: preserve context name on talloc_free_children()Simo Sorce2011-08-201-0/+23
| | | | | | | | Otherwise tc->name will end up pointing to garbage when it is not set to a const but rather to a string allocate as child of the context itself. Signed-off-by: Andrew Tridgell <tridge@samba.org> (cherry picked from commit 52182a528117c4dd9624f64b34a873c0903ad70a)
* talloc: ensure the sibling linked list remains valid during a freeAndrew Tridgell2011-08-201-15/+3
| | | | | | | | | | | | | This ensures that the sibling list of a pointer doesn't become invalid during a free operation. It is an alternative fix to the fix in 6f51a1f45bf4de062cce7a562477e8140630a53d, and avoids the problem of trying to calculate the parent pointer early This should fix the subtle spoolss talloc bug that Simo found Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Tue Aug 9 01:53:17 CEST 2011 on sn-devel-104 (cherry picked from commit cf986f200804ce873b43c1ecf2d5e1bd08eb8a25)
* Fix warning messages on Freebsd 4.6.2.Herb Lewis2011-08-181-0/+2
| | | | | | | Signed-off-by: Jeremy Allison <jra@samba.org> (cherry picked from commit f0901792324425804592ac7032e3853b4d4c7829) Fix bug #8365 (backport compiler warnings).
* Fix bug 7462 - Non-standard SA_RESETHAND is used in ↵Jeremy Allison2011-08-023-4/+6
| | | | | | | | | | ...lib/tevent/tevent_signal.c Make SA_RESETHAND conditional on its existance. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Mon Aug 1 22:03:45 CEST 2011 on sn-devel-104 (cherry picked from commit 0c67efdd68b9808542c090b9fd9920e4e37d85d0)
* lib/util/wrap_xattr.h: fix licence/copyrightGünther Deschner2011-06-141-0/+21
| | | | | Guenther (cherry picked from commit d228fc35f38b77877f0fd07b415df87d4ccdb812)
* lib/util/util_tdb.h: fix licence/copyrightGünther Deschner2011-06-141-0/+21
| | | | | Guenther (cherry picked from commit eaa400216570403e67f7f06db509ce90fba02c13)
* lib/util/util_ldb.h: fix licence/copyrightGünther Deschner2011-06-141-0/+23
| | | | | Guenther (cherry picked from commit 4fe4487cd9391cac813ab94d7002eac6dc722f4c)
* lib/util/time.h: fix licence/copyrightGünther Deschner2011-06-141-1/+6
| | | | | Guenther (cherry picked from commit 74610109ac3140713140038d10df644024796907)
* lib/util/data_blob.h: fix licence/copyrightGünther Deschner2011-06-141-1/+4
| | | | | Guenther (cherry picked from commit a602cb2a0a0bc19121232444117486d8286e0af9)
* Revert "Fix bug 8196 - Many (newer) header files don't have copyright / GPL ↵Karolin Seeger2011-06-0715-229/+0
| | | | | | header comments." This reverts commit 6df3ff20620b3262ff232a478312c61a207ed4ff.
* Fix bug 8196 - Many (newer) header files don't have copyright / GPL header ↵Jeremy Allison2011-06-0715-0/+229
| | | | | | comments. Add missing GPL headers and (C) statements.
* Fix bug #8197 - winbind does not properly detect when a DC connection is dead.Jeremy Allison2011-06-071-6/+32
| | | | | | | | | | | | | | | | Only waiting for writability doesn't get fd errors back with poll. So always begin by selecting for readability, and if we get it then see if bytes were available to read or it really is an error condition. If bytes were available, remove the select on read as we know we will retrieve the error when we've finished writing and start reading the reply (or the write will timeout or fail). Metze and Volker please check. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Mon Jun 6 21:53:16 CEST 2011 on sn-devel-104 (cherry picked from commit 0efcc94fb834aeb03e8edc3034aa0cdeefdc0985)
* Fix the poll() backend to correctly respond to POLLHUP|POLLERR returns on a ↵Jeremy Allison2011-06-071-1/+13
| | | | | | | | | | | | | fd selected for TEVENT_FD_WRITE only. Don't trigger the write handler and remove the POLLOUT flag for this fd. Report errors on TEVENT_FD_READ requests only. Metze please check ! Jeremy. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Fri Jun 3 22:53:52 CEST 2011 on sn-devel-104 (cherry picked from commit dbcdf3e39c359241b743a9455ae695e14a30caa9)
* replace: remove waring if IOV_MAX is not definedBjörn Jacke2011-06-031-2/+0
| | | | | | | | | | | | as discussed on samba-techincal we currelty don't rely on it and we don't want to flood this warning message during compile. Autobuild-User: Björn Jacke <bj@sernet.de> Autobuild-Date: Tue May 31 18:36:53 CEST 2011 on sn-devel-104 (cherry picked from commit 65f0800a34270ff0c779c9f3feb63b02d3ec800f) Fix bug #7998 (fails to build on Hurd because of undefined IOV_MAX or UIO_MAXIOV).
* Fix bug #7998.Samuel Thibault2011-06-031-1/+1
| | | | | (fails to build on Hurd because of undefined IOV_MAX or UIO_MAXIOV)
* Fix our asn.1 parser to handle negative numbers.Jeremy Allison2011-05-261-0/+9
| | | | | | | | Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Tue May 24 22:57:16 CEST 2011 on sn-devel-104 (cherry picked from commit e719dfd4dc178f001a5f804fb1ac4e587574415f) Fix bug #8163 (asn.1 library does not correctly read negative integers).
* Fix bug 8153 found when building on an IPv6-only system by Kai Blin.Jeremy Allison2011-05-201-3/+16
| | | | | | | | | | | | | | | When building on IPv6-only, doing: hints.ai_family = AF_INET; getaddrinfo("0.0.0.0", NULL, &hints, &ppres) fails as AF_INET is unavailable on an IPv6-only system. This causes us to fallback to our replacement getaddrinfo code which is IPv4-only. As we're only trying to detect a specific AIX bug here, broaden the tests to find that bug, and also test for working getaddrinfo in an IPv6-only safe way.
* talloc: splitout _talloc_free_children_internal()Stefan Metzmacher2011-05-201-50/+27
| | | | | | | | | | | metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Tue May 17 10:49:13 CEST 2011 on sn-devel-104 (cherry picked from commit df2cb2f672569e5d113fe2e77fdc1ee16c8b646d) The last 9 patches address bug #8140 (talloc: valgrind false positives and other backports).
* talloc: fixed a use after free error in talloc_free_children()Stefan Metzmacher2011-05-201-1/+16
| | | | | | | This is similar to commit 6f51a1f45bf4de062cce7a562477e8140630a53d. metze (cherry picked from commit 38633c9f0b7f86673f08903999583ad5b62c3548)
* talloc: use _talloc_free_internal() in talloc_free_children()Stefan Metzmacher2011-05-201-1/+1
| | | | | metze (cherry picked from commit f3b855d2ff9576715afe50d75678829c6bc0842d)
* talloc: test talloc_steal out of a talloc_poolStefan Metzmacher2011-05-201-0/+69
| | | | | | | | metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Tue May 17 09:43:01 CEST 2011 on sn-devel-104 (cherry picked from commit 37b2130ed9612a7334888ecd2fee26b0b45ac271)
* talloc: add memset() calls to test_pool()Stefan Metzmacher2011-05-201-0/+17
| | | | | | | This way we the pool based valgrind code. metze (cherry picked from commit 16cc52cf70a9918843f9761baf483338c80bf1d0)
* talloc: setup the new 'tc' before TC_UNDEFINE_GROW_CHUNK() _talloc_realloc()Stefan Metzmacher2011-05-201-0/+1
| | | | | metze (cherry picked from commit c281f2fc1a359d0d3b91b94438f11bb7c88170b5)
* talloc: make really sure only optimize realloc if there's only one pool chunkStefan Metzmacher2011-05-201-1/+6
| | | | | | | | *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 (cherry picked from commit 7102105c8954627dc30a851327cf2642ac0783d5)
* talloc: make use of _talloc_free_poolmem() in _talloc_realloc()Stefan Metzmacher2011-05-201-15/+1
| | | | | | | This should follow the same logic... metze (cherry picked from commit 14b662ee4f278764b9dfd620851e908d29f29fc4)
* talloc: split the handling of FLAG_POOL/FLAG_POOLMEM in _talloc_free_internalStefan Metzmacher2011-05-201-32/+66
| | | | | | | | | | | | | | | | 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 (cherry picked from commit 2d514be1ed3b8245157a0a51186ec7f9db828202)
* lib/util Move source3 tdb_wrap_open() into the common code.Andrew Bartlett2011-05-164-1/+246
| | | | | | | | | | This #if _SAMBA_BUILD == 3 is very unfortunate, as it means that in the top level build, these options are not available for these databases. However, having two different tdb_wrap lists is a worse fate, so this will do for now. Andrew Bartlett (cherry picked from commit 14750139639b3531e57a3ca3f9e481d6e458dc06)
* lib/util Move more network utility functions from source3 into lib/utilAndrew Bartlett2011-05-164-1/+275
| | | | | | | This will help with the merge of the interfaces layer. Andrew Bartlett (cherry picked from commit fbea52f74a80268446f45936a0cf40400aba8565)
* libsmbconf: Define a doxygen group for libsmbconf.Andreas Schneider2011-05-111-0/+11
| | | | Signed-off-by: Michael Adam <obnox@samba.org>
* libsmbconf: Document smbconf_transaction_cancel().Andreas Schneider2011-05-111-0/+10
| | | | Signed-off-by: Michael Adam <obnox@samba.org>
* libsmbconf: Document smbconf_transaction_commit().Andreas Schneider2011-05-111-0/+13
| | | | Signed-off-by: Michael Adam <obnox@samba.org>
* libsmbconf: Document smbconf_transaction_start().Andreas Schneider2011-05-111-0/+11
| | | | Signed-off-by: Michael Adam <obnox@samba.org>
* libsmbconf: Document smbconf_delete_global_includes().Andreas Schneider2011-05-111-0/+8
| | | | Signed-off-by: Michael Adam <obnox@samba.org>
* libsmbconf: Document smbconf_delete_includes().Andreas Schneider2011-05-111-0/+12
| | | | Signed-off-by: Michael Adam <obnox@samba.org>
* libsmbconf: Document smbconf_set_global_includes().Andreas Schneider2011-05-111-0/+12
| | | | Signed-off-by: Michael Adam <obnox@samba.org>
* libsmbconf: Document smbconf_set_includes().Andreas Schneider2011-05-111-0/+15
| | | | Signed-off-by: Michael Adam <obnox@samba.org>
* libsmbconf: Document smbconf_get_global_includes().Andreas Schneider2011-05-111-0/+15
| | | | Signed-off-by: Michael Adam <obnox@samba.org>
* libsmbconf: Document smbconf_get_includes().Andreas Schneider2011-05-111-0/+17
| | | | Signed-off-by: Michael Adam <obnox@samba.org>
* libsmbconf: Document smbconf_delete_global_parameter().Andreas Schneider2011-05-111-0/+13
| | | | Signed-off-by: Michael Adam <obnox@samba.org>
* libsmbconf: Document smbconf_delete_parameter().Andreas Schneider2011-05-111-0/+13
| | | | Signed-off-by: Michael Adam <obnox@samba.org>
* libsmbconf: Document smbconf_get_global_parameter().Andreas Schneider2011-05-111-0/+17
| | | | Signed-off-by: Michael Adam <obnox@samba.org>
* libsmbconf: Document smbconf_get_parameter().Andreas Schneider2011-05-111-0/+17
| | | | Signed-off-by: Michael Adam <obnox@samba.org>