diff options
author | Andrew Tridgell <tridge@samba.org> | 2004-05-20 13:25:06 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:53:50 -0500 |
commit | f0a8f718ff474009300af6746fa0fbb61c649ea9 (patch) | |
tree | 47c1c29215336691e96c2d2526883455f108d585 /source4/lib/ldb/tools/ldbmodify.c | |
parent | 0a083d1e08a7f7dfcf8abf5866ceb0eee52509e7 (diff) | |
download | samba-f0a8f718ff474009300af6746fa0fbb61c649ea9.tar.gz samba-f0a8f718ff474009300af6746fa0fbb61c649ea9.tar.bz2 samba-f0a8f718ff474009300af6746fa0fbb61c649ea9.zip |
r792: - changed the ldb ldif_* functions to be in the ldb_ namespace
- added better error reporting in ldbdel
- fixed a bug in handling packing of records which contain elements
with no values (it caused db corruption)
- allow search with "dn" as target attribute
(This used to be commit 36575396234e3d35dbd442c8f1ff54a17ae64e64)
Diffstat (limited to 'source4/lib/ldb/tools/ldbmodify.c')
-rw-r--r-- | source4/lib/ldb/tools/ldbmodify.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/lib/ldb/tools/ldbmodify.c b/source4/lib/ldb/tools/ldbmodify.c index 828b7d4865..b6ca2993ce 100644 --- a/source4/lib/ldb/tools/ldbmodify.c +++ b/source4/lib/ldb/tools/ldbmodify.c @@ -54,7 +54,7 @@ static int process_file(struct ldb_context *ldb, FILE *f) struct ldb_ldif *ldif; int ret = -1, count = 0; - while ((ldif = ldif_read_file(ldb, f))) { + while ((ldif = ldb_ldif_read_file(ldb, f))) { switch (ldif->changetype) { case LDB_CHANGETYPE_NONE: case LDB_CHANGETYPE_ADD: @@ -74,7 +74,7 @@ static int process_file(struct ldb_context *ldb, FILE *f) } else { count++; } - ldif_read_free(ldb, ldif); + ldb_ldif_read_free(ldb, ldif); } return count; |