summaryrefslogtreecommitdiff
path: root/source3/lib/tdb/tools
AgeCommit message (Collapse)AuthorFilesLines
2008-07-09Revert "tdbtool: fix off-by-one error in argument length. (bug #2344)"Michael Adam1-1/+1
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 (cherry picked from commit 17c012c4645f4e9542537c15f80d9b4e74304d11) (This used to be commit 42c953c106b3da90e8c3452c4a246392502c200d)
2008-07-08tdbtool: fix off-by-one error in argument length. (bug #2344)Michael Adam1-1/+1
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 9be6b46f7715cdc7f77308d7613e8df73effe3c1)
2007-12-20fix dump printout when byte >= 0x80Herb Lewis1-1/+1
(This used to be commit e18fab269c7370a6670c56eeab60fd90feecf0b2)
2007-11-06Fix tdbtorture build.Jeremy Allison1-1/+1
Jeremy. (This used to be commit c14db81be5212dfa6fbcf8bfdcf725d7db3376ca)
2007-11-06Keep the tdb code in sync with Samba4.Jeremy Allison2-2/+2
Mainly this is the svn changes : ------------------------------------------------------------------------ r23238 | tridge | 2007-05-30 01:15:49 -0700 (Wed, 30 May 2007) | 6 lines merged transaction lock changes from ctdb this ensures that having the global lock also implies the transaction lock ------------------------------------------------------------------------ r22832 | tridge | 2007-05-13 18:00:06 -0700 (Sun, 13 May 2007) | 3 lines merged the latest tdb changes from ctdb to Samba4 Jeremy. (This used to be commit ab11c0055761e97ba32a8c3ec4fa6f8763a262cd)
2007-11-06Fix bug where tdb lock call interrupted withJeremy Allison3-0/+3
an alarm sig would not terminate and could lead to runaway smbd processes. Thanks to Dave Daugherty @ Centrify for pointing this out to us. Jeremy. (This used to be commit ef8da1698371c95495add53df81a978df709c88d)
2007-10-10r23950: unlink before rename is superfluous.Michael Adam1-1/+0
Michael (This used to be commit 63c4c40cf7055ab7cf413a23e306cf209a1dd0a1)
2007-10-10r23925: Use NULL instead of 0 for a void * argument.Michael Adam1-1/+1
(This used to be commit 864b3d260f3b099b1f24edf4ed0a7ed52b05f6cc)
2007-10-10r23853: Fix a very misleading error message in tdbbackup.Michael Adam1-1/+1
Michael (This used to be commit 3a2a032a44502eebdb61faf9cfdb3e54f5072514)
2007-10-10r23784: use the GPLv3 boilerplate as recommended by the FSF and the license textAndrew Tridgell3-6/+3
(This used to be commit b0132e94fc5fef936aa766fb99a306b3628e9f07)
2007-10-10r23779: Change from v2 or later to v3 or later.Jeremy Allison3-3/+3
Jeremy. (This used to be commit 407e6e695b8366369b7c76af1ff76869b45347b3)
2007-10-10r23184: Checkin for Tridge: Add a speed test to tdbtoolVolker Lendecke1-2/+52
(This used to be commit a343521439f68c76c9939f04eea96c6e6d6b01e4)
2007-10-10r22363: merge from samba4:Stefan Metzmacher1-1/+1
fix compiler warning metze (This used to be commit e9200b4475bcae4fd5eaaf94905c8a9beccd635a)
2007-10-10r22315: move tdbback.c content into tdbbackup.cStefan Metzmacher1-23/+169
and make the functions static. also use libreplace headers in tdbbackup.c metze (This used to be commit 1ca12b1c9e7e8267fa13a40ebeb2bdcd199237de)
2007-10-10r22314: use libreplace headersStefan Metzmacher1-12/+4
metze (This used to be commit d757cdc092b07972c110208717f13fdc0656f55f)
2007-10-10r22249: move tdb code to lib/tdb/ as in samba4Stefan Metzmacher5-0/+1471
metze (This used to be commit c7def92a9c2e17c90061ef17bc14e36250574e85)