summaryrefslogtreecommitdiffstats
path: root/source/tdb/tdbtool.c
Commit message (Collapse)AuthorAgeFilesLines
* it's getting comic ...Simo Sorce2002-12-171-1/+2
| | | | yet another missing piece :-O
* tdb tools need #include <signal.h>Jeremy Allison2002-09-191-0/+1
| | | | Jeremy.
* fixed tdbtool from core dumping. But the braces to make Chris happy !Jean-François Micouleau2002-04-301-2/+4
| | | | J.F.
* Removed version number from file header.Tim Potter2002-01-301-2/+1
| | | | Changed "SMB/Netbios" to "SMB/CIFS" in file header.
* Tidyups to remove warnings on tdb standalone code.Jeremy Allison2001-12-111-15/+17
| | | | Jeremy.
* Formatting fixup.Tim Potter2001-12-101-1/+1
|
* Fix headers. This I know is correct.Martin Pool2001-12-041-0/+1
|
* undoMartin Pool2001-12-041-6/+3
|
* Implement suggestion from tridge to leave the old tdb_open interfaceMartin Pool2001-12-041-4/+4
| | | | | as it was, and add tdb_open_ex() which takes a log callback. I guess this makes more sense since it's a public interface.
* Better error handling:Martin Pool2001-12-041-2/+5
| | | | | | | | | | | | | - tdb_open api changed so that you now pass an error handling callback when opening the file, so that errors detected during opening have somewhere to go. (All calls from the body of Samba to this function go through a wrapper in tdbutil, which has been updated.) - Clean up logic for deciding how to open tdb. Emit log messages if something goes wrong (e.g. bad magic.) - tdbtool now logs errors to stderr.
* Don't display any data if tdb_fetch() failed in the tdbtool "fetch"Tim Potter2001-12-031-1/+4
| | | | command.
* Updated definition of fstring.Tim Potter2001-12-031-4/+11
| | | | | print_asc(): Don't try to print a trailing NULL character print_key(), print_rec(): Display key in ASCII
* Added a 'keys' command to tdbtool which prints out all keys in the tdb.Tim Potter2001-11-281-0/+10
|
* Removed #ifdef TDB_DEBUG around tdb_dump_all() and tdb_printfreelist()Tim Potter2001-11-091-8/+2
| | | | so that tdbtool can be compiled without having to make clean.
* Patch for having spaces in tdb keys, NULL termination fixes and otherTim Potter2001-08-071-22/+87
| | | | stuff. From Andrew Esh <AEsh@tricord.com>
* Print an error message if database could not be opened.Volker Lendecke2001-08-041-0/+7
| | | | Volker
* added list function to tdbtoolAndrew Tridgell2001-05-301-0/+2
|
* It compiles for me now :-). rpc_server/srv_lsa.c - added fix to allow w2kJeremy Allison2001-02-131-6/+15
| | | | | clients to join a Samba domain - odd or even domain name length. Needs more testing. Jeremy.
* Changes from APPLIANCE_HEAD:David O'Neill2001-01-291-10/+73
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | source/include/proto.h - make proto source/printing/nt_printing.c source/rpc_server/srv_spoolss_nt.c - Fix for the overwriting of printerdata entries when WinNT and Win2k are modifying printer parameters on PCL printers. Turns out that Win2k creates a printer with a NULL devmode entry and then expects to set it on *OPEN* (yes this is insane). So we cannot return a "default" devmode for a printer - and we must allow an open to set it. source/tdb/tdb.c - Show freelist in an easier format. Show total free. - When storing a new record, allocate memory for the key + data before the tdb_allocate() as if the malloc fails a (sparse) hole is left in the tdb. source/tdb/tdbtool.c - Show freelist in an easier format. Show total free. source/tdb/Makefile - cleaned up Makefile dependancies source/smbd/lanman.c - Fix for Win9x corrupting it's own parameter string. source/printing/printfsp.c source/printing/printing.c source/rpc_server/srv_spoolss_nt.c source/smbd/close.c - Added normal close parameter into print_fsp_end() which treats an abnormal close as error condition and deletes the spool file.
* Fixed bug with tdb_next_lock failing when reaching then end of a hashchainJeremy Allison2000-12-071-0/+29
| | | | | and the next hashchain is empty. Jeremy
* Added print_freelist command.Jeremy Allison2000-12-021-0/+3
| | | | Jeremy.
* Fixes from Damian at Cisco to tidy up some tdbtool issues.Jeremy Allison2000-10-051-4/+15
| | | | Jeremy.
* dump in a binary formatAndrew Tridgell2000-04-241-3/+45
|
* Added standard shell command thing using '!' as first character.Tim Potter2000-03-131-41/+49
|
* Modifications to tdb_traverse() arguments to remove compile warnings.Tim Potter2000-02-281-1/+7
|
* 1) added void* state argument to tdb_traverse. guess what! there wereLuke Leighton2000-02-041-5/+5
| | | | | | | | | | | | | | | | | | two places i found where it was appropriate to _use_ that third argument, in locking.c and brlock.c! there was a static traverse_function and i removed the static variable, typecast it to a void*, passed it to tdb_traverse and re-cast it back to the traverse_function inside the tdb_traverse function. this makes the use of tdb_traverse() reentrant, which is never going to happen, i know, i just don't like to see statics lying about when there's no need for them. as i had to do in samba-tng, all uses of tdb_traverse modified to take the new void* state argument. 2) disabled rpcclient: referring people to use SAMBA_TNG rpcclient. i don't know how the other samba team members would react if i deleted rpcclient from cvs main. damn, that code's so old, it's unreal. 20 rpcclient commands, instead of about 70 in SAMBA_TNG.
* don't require readlineAndrew Tridgell2000-01-071-1/+13
|
* - added tdb_flags option to tdb_open()Andrew Tridgell2000-01-021-2/+3
| | | | | | | | | - added TDB_CLEAR_IF_FIRST flag to clear the database if this is the first attached process. Useful for non-persistent databases like our locking area (this will also make upgrades to new database layouts easier) - use lock_path() in a couple of places - leave connections database open while smbd running - cleaned up some tdb code a little, using macros for constants
* fixed more locking bugs - all seems OK nowAndrew Tridgell1999-12-241-3/+1
|
* first pass at the database code for Samba. This also includes a testAndrew Tridgell1999-12-211-0/+206
suite and a very simple tool for manuipulating the databases. the main code is in tdb/tdb.c and includes both mmap and file based IO. All databases auto-expand and allow multiple simultaneous writers. the next step is using this new capability in lots of places in Samba where we have existing ad-hoc databases