From a71ad96bd046f1199e67b4fe8fc7783cbd8dd771 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Tue, 30 Oct 2012 15:41:27 +1100 Subject: ldb: Add ldbdump, based on tdbdump This uses a tdb_traverse or (more usefully) the tdb_rescue API, like tdbdump. The difference here is that it uses ldb helper functions to further eliminate faulty records, which avoids creating duplicates in the output. (The duplicates come from parts of records that are left in blank space in the db, which tdb_rescue finds, but which are not actually a full record). Andrew Bartlett Autobuild-User(master): Andrew Bartlett Autobuild-Date(master): Tue Oct 30 23:56:11 CET 2012 on sn-devel-104 --- lib/ldb/wscript | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/ldb/wscript') diff --git a/lib/ldb/wscript b/lib/ldb/wscript index 566c05eac6..66fa24ba58 100755 --- a/lib/ldb/wscript +++ b/lib/ldb/wscript @@ -253,6 +253,10 @@ def build(bld): bld.SAMBA_BINARY('ldbtest', 'tools/ldbtest.c', deps='ldb-cmdline ldb', install=False) + # ldbdump doesn't get installed + bld.SAMBA_BINARY('ldbdump', 'tools/ldbdump.c ldb_tdb/ldb_pack.c', deps='ldb-cmdline ldb', + install=False) + bld.SAMBA_LIBRARY('ldb-cmdline', source='tools/ldbutil.c tools/cmdline.c', deps='ldb dl popt', -- cgit