1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-14 01:57:53 +03:00

322 Commits

Author SHA1 Message Date
Michael Adam
1db2c04727 Revert "tdbtool: fix off-by-one error in argument length. (bug #2344)"
This reverts commit fafb8ad2b81b9a46cf8259bedc1dca5023b06115.

This fix is not valid:

1. convert_string() is not only used for key strings but also for data.

2. Some databases use string_tdb_data() i.e. non-null-terminated strings
   as keynames and others (like the one I was using), use
   string_term_tdb_data(), i.e. zero-terminated key strings.

After discussion with Metze, the easiest (and proper way) to
handle this is to specify key names as "keyname\0" for databases
which use string_term_tdb_data().

Sorry for the noise...

Michael
(This used to be commit 17c012c4645f4e9542537c15f80d9b4e74304d11)
2008-07-09 12:57:56 +02:00
Michael Adam
6ae40a8b74 tdbtool: fix off-by-one error in argument length. (bug #2344)
This prevented all commands operating on keys (all non-traverse commands)
in tdbtool to fail with a "fetch failed" or "delete failed" message.

It seems that it fixes bug #2344 ...

Apparently this bug was introduced with 94e53472666ed in 2005.
Either nobody is using tdbtool or else tdb_find() has become
more strict about the key legth in the meantime. :-)

Michael
(This used to be commit fafb8ad2b81b9a46cf8259bedc1dca5023b06115)
2008-07-08 16:02:33 +02:00
Jelmer Vernooij
3fe58d839a Use variables for source dir of python tdb bindings.
(This used to be commit 22e7bcfbe4534c070ac2dd5f39773ea023dfa7f7)
2008-06-11 02:47:09 +02:00
Jelmer Vernooij
cad533c68e Add more docstrings in tdb.
(This used to be commit 3d798a1440603b7929955f2120f09ba1482885a1)
2008-06-08 04:20:26 +02:00
Jelmer Vernooij
66762985e7 Add some docstrings to tdb.
(This used to be commit 3563d62663c36ff267011f1f6f9b256be21c32fb)
2008-05-23 00:36:48 +02:00
Jelmer Vernooij
5ce59419a0 Fix CFLAGS for SWIG files.
(This used to be commit 8ee4f075046e0b181ec8a4ac1eaf3ea5621a56bf)
2008-05-22 02:13:26 +02:00
Jelmer Vernooij
49706ab19b Move more modules inside of the samba package.
(This used to be commit 9b39e99f48266a54ed0b8890c2efde218b4b118a)
2008-05-21 23:59:34 +02:00
Jelmer Vernooij
82bcf967b7 Move CFLAGS overrides for SWIG modules to Makefile.
(This used to be commit 58665a8a8e4b10435aebbf2c95b6a8e50db232d6)
2008-05-21 21:32:53 +02:00
Jelmer Vernooij
2914b0ca04 Remove support for .py files from smb_build - deal with it only in the makefiles.
(This used to be commit b865249efaa58d0fc87fa25491fda3b970af81c3)
2008-05-21 21:24:48 +02:00
Jeremy Allison
6d4424cd45 Convert in_transaction to a bool. Add the same fix Volker
used for tdb_traverse() to tdb_traverse_read().
Jeremy.
(This used to be commit e05ec3047c4fe0cc2e09a812830fc835dc35abea)
2008-05-20 14:20:47 -07:00
Volker Lendecke
aa7e4b8e9c Fix nesting tdb_traverse in a transaction
Calling tdb_traverse inside a transaction led to the transaction lock being
held indefinitely. This was caused by the tdb_transaction_lock/unlock inside
tdb_traverse: The transaction code holds the global lock at offset
TRANSACTION_LOCK. The call to tdb_transaction_lock does nothing because the
transaction_lock is already being held. tdb_transaction_unlock inside tdb_wrap
resets tdb->have_transaction_lock but does not release the kernel-level fcntl
lock. transaction_commit later on does not release that fcntl lock either,
because tdb->have_transaction_lock was already reset by tdb_transaction().

This patch does fix that problem for me. An alternative would be to make
tdb->have_transaction_lock a counter that can cope with proper nesting, maybe
in other places as well.

Volker
(This used to be commit 89543005fe2e4934b3c560c937d49304a32a7fc2)
2008-05-20 14:20:42 -07:00
Jelmer Vernooij
7015b7840c Update tdb version number.
(This used to be commit eae17ae8ecdcb83fdb756189a9d5609a192371a4)
2008-05-20 01:52:11 +02:00
Jelmer Vernooij
1b4b8d5e78 Add __repr__ implementation for Tdb.
(This used to be commit 205699ed663a3c6d27695dee25bf26978615b475)
2008-05-19 23:36:33 +02:00
Jelmer Vernooij
40b6dc1b31 Fix dependency.
(This used to be commit d8fe782dc200907e0364c623e187c51f4d44edb2)
2008-05-19 23:36:11 +02:00
Jelmer Vernooij
4aba4d38c7 Fix link flags for ldb and tdb Python modules.
(This used to be commit 787a32fdef9d761d64839f489cca0b0684f9a9fd)
2008-05-08 11:56:32 +02:00
Jelmer Vernooij
e9017ba418 Use _OBJ_FILES variables in a couple more places.
(This used to be commit 92856d5054106894b65cd1a1b5119c0facfc4cff)
2008-04-14 17:22:58 +02:00
Jelmer Vernooij
236fc02913 Reduce the number of installed headers.
(This used to be commit 2243e24024f09ff9c9c7d0eb735c3b39c9d84424)
2008-04-02 13:41:10 +02:00
Jelmer Vernooij
1ada710840 Move public header accumulation out of the perl code.
Never install generated prototype files. It's easier to break the
API when using them and they're not easily readable for 3rd party users.

Conflicts:

	source/auth/config.mk
	source/auth/credentials/config.mk
	source/auth/gensec/config.mk
	source/build/smb_build/config_mk.pm
	source/build/smb_build/main.pl
	source/build/smb_build/makefile.pm
	source/dsdb/config.mk
	source/lib/charset/config.mk
	source/lib/tdr/config.mk
	source/lib/util/config.mk
	source/libcli/config.mk
	source/libcli/ldap/config.mk
	source/librpc/config.mk
	source/param/config.mk
	source/rpc_server/config.mk
	source/torture/config.mk
(This used to be commit 6c659689ed4081f1d7a6253c538c7f01784197ba)
2008-02-29 14:23:38 +01:00
Simo Sorce
0a8b1fd092 Update homepages for talloc, tdb and ldb subprojects
(This used to be commit 8cb07814bc6627fc8eba228eafd13336e3ca3758)
2008-02-25 14:03:07 -05:00
Jelmer Vernooij
8a3f8dc646 Allow tdb.mk and talloc.mk to be included at the same time.
(This used to be commit af9e0421529104d2583c58f7723abe8612e78f53)
2008-02-13 17:42:10 +01:00
Jelmer Vernooij
11bc6056ea Never build .so versions of tdb/talloc from Samba 4 itself. Rather,
use shared library versions if they are provided by the system.

This puts talloc and tdb in a similar situation as popt:
the system version is used if provided but if it's not there or if it
is too old, we use our internal version statically.
(This used to be commit 86f88eb7b51377344eebf0b6fabad0f5459b3f45)
2008-02-13 17:01:37 +01:00
Jelmer Vernooij
1ed346fcb3 Support using shared library during testsuite run if tdb was built with a shared lib internally.
(This used to be commit 28539f48e6ad37a6436e6f2c6733ee1fcbc6567f)
2008-02-12 13:51:03 +01:00
Jelmer Vernooij
285820bdd4 make sure libraries are built before attempting to install.
(This used to be commit deb1dae2dabad3d74a1c6adf2c0b0d56917cca83)
2008-02-12 13:34:19 +01:00
Jelmer Vernooij
18ef767085 Specify PICFLAG when compiling python modules.
(This used to be commit 981957165d09e82947f68475192f1ce1f0ddbdd3)
2008-02-12 13:09:38 +01:00
Jelmer Vernooij
923d1ec2f4 Fix installation of python module for ldb and tdb.
(This used to be commit 6c9a8bf9f03cef0fc1c5f7ec3f8786eccf79c851)
2008-02-12 12:42:31 +01:00
Jelmer Vernooij
e84cd8d38b tdb/ldb: Use prefix in case DESTDIR is not set.
(This used to be commit ab19a8f62719eb0f347696a2e5f34f8847fd82cb)
2008-02-12 02:15:09 +01:00
Jelmer Vernooij
9522586695 Create the required directories when installing Python code.
(This used to be commit 8ef36fe54555cc0c5ac0d1f118d0a1a7b770c2fd)
2008-02-12 01:58:42 +01:00
Jelmer Vernooij
1529331b97 Avoid using setup.py for intsallation.
(This used to be commit 7b93e43dad55454e9107a38e67764e08f51392d3)
2008-02-12 01:21:10 +01:00
Jelmer Vernooij
8244b4c071 Manually compile python files rather than using setup.py.
(This used to be commit 94dfeb5e89a641e2af3d7426d9d25c87952198d2)
2008-02-12 00:35:11 +01:00
Jelmer Vernooij
ecb987c97c Fix out of tree builds.
(This used to be commit 35c8ebdca2612b52cd3eb2aafd35041d17173722)
2008-02-11 23:51:59 +01:00
Jelmer Vernooij
3e3946cdca Split actual content out of tdb Makefile into a separate file.
(This used to be commit b5d4ab2cf4a73883fff867f878788d94bd8e1649)
2008-02-11 22:55:51 +01:00
Jelmer Vernooij
25641ec13d Split rules out of tdb Makefile.
(This used to be commit 9f233c14540cd4b2d5f4c7fe01e2d89cb220abc8)
2008-02-11 22:02:57 +01:00
Andrew Tridgell
77dab7f857 merge tdb changes from ctdb
(This used to be commit b3e60a388d338ef90540007239e88563cb9ba27a)
2008-02-08 14:13:19 +11:00
Andrew Tridgell
8c4e52547b merge growing tdb for tdb_wipe_all() fix from ctdb
(This used to be commit df4efb902ec5053ae9d7c6e4fd1e21255ca66914)
2008-02-07 23:06:44 +11:00
Andrew Tridgell
3a3ff8ebe7 merged tdb transaction fix
(This used to be commit eb3af24926977208a8099c848a510704d2ae3524)
2008-01-31 09:48:46 +11:00
Jelmer Vernooij
a259547786 build: Remove support for DESCRIPTION setting that is now unused.
(This used to be commit 91d7ba5202e6c375456a42c2c6861f63c7fcfc20)
2008-01-22 18:49:51 +01:00
Jelmer Vernooij
cc984e4046 ldb/talloc/tdb: Use manually written pc file.
(This used to be commit c8947fda23eb874a7694bdee1b4de605744c2769)
2008-01-22 18:24:00 +01:00
Jelmer Vernooij
a6a8720025 tdb: Add URL in pc file.
(This used to be commit 2fc26c09026a0f2f74e5c7c86002e662b559d265)
2008-01-22 18:14:12 +01:00
Andrew Tridgell
61a015a786 merged changes from v3-2-test
(This used to be commit 7077df3e2e3f171532f6a5ac87d45201736c9c11)
2008-01-18 15:45:22 +11:00
Andrew Tridgell
524d280ad0 merged tdb changes from ctdb
(This used to be commit c54c087a19e36e0522eb4546c9425ae446f0628b)
2008-01-18 15:33:57 +11:00
Andrew Tridgell
9170998427 merged tdb from ctdb bzr tree
(This used to be commit ed0c3a0f74c305b3b8554b05c3f97cf79db8296a)
2008-01-15 14:05:47 +11:00
Jelmer Vernooij
6bdd1425b7 tdb: Add simple reimplementation of tdbdump in Python as an example of the tdb Python bindings.
(This used to be commit 47d797f7885b1e7bcff724496ecb1990e8440eea)
2008-01-10 23:41:14 +01:00
Jelmer Vernooij
db5b0fcfb8 r26700: tdb: Build and install Python bindings when possible.
(This used to be commit 8d77ea379fef5ad4b2718bc8e0620304588c9239)
2008-01-10 09:21:11 -06:00
Tim Potter
4e6dcc73b2 r26678: Check in auto-generated swig files.
(This used to be commit 62017f049bc0b0f311ba49d03084044faa5e6dcd)
2008-01-06 17:48:02 -06:00
Tim Potter
e45c7ffb80 r26677: Implement and test iter{keys,values,items} for tdb bindings.
Use tempfile.mkstemp() instead of os.tmpnam() in tests.
(This used to be commit 5c3c131d174ba0f162c210d3e6ca30f2ed2a3ec0)
2008-01-06 17:21:02 -06:00
Jelmer Vernooij
a5301d2204 r26668: tdb/python: Fix default value of open_flags for tdb.
(This used to be commit aa438a2febc6562aa6f71505936d0872a6dcd17d)
2008-01-05 09:42:01 -06:00
Jelmer Vernooij
6c9a2a3c52 r26586: Rename fetch to get for consistency with the Python dictionary interface.
(This used to be commit fadab7c60bb6dc5746cb2ee16f9c86fa0e0cdf1a)
2007-12-26 11:57:04 -06:00
Jelmer Vernooij
59efa6e5d0 r26585: Fix samba3.python tests.
(This used to be commit 231ec0777b7d1fb1297e3a974871b8735a386cfa)
2007-12-26 11:57:04 -06:00
Jelmer Vernooij
9faf93c7b0 r26583: Throw a proper exception in the python code when tdb_open() fails, fix indentation in generated SWIG code from pidl.
(This used to be commit 4ff8f4e370d30bf6b0b2f548bca14a9b7e1317f6)
2007-12-26 11:57:03 -06:00
Jelmer Vernooij
5e574b2b94 r26582: Use the same swig flags everywhere.
(This used to be commit 7008f90e03a12687f739e5492b3e0ab36587db6a)
2007-12-24 01:51:07 -06:00