mirror of
https://github.com/samba-team/samba.git
synced 2025-11-29 16:23:52 +03:00
r4474: - converted ldb to use talloc internally
- added gcov flags to Makefile.ldb - expanded ldb test suite to get more coverage
This commit is contained in:
committed by
Gerald (Jerry) Carter
parent
98b5f73c1b
commit
0ab98f50a7
@@ -62,18 +62,18 @@ static int process_file(struct ldb_context *ldb, FILE *f)
|
||||
switch (ldif->changetype) {
|
||||
case LDB_CHANGETYPE_NONE:
|
||||
case LDB_CHANGETYPE_ADD:
|
||||
ret = ldb_add(ldb, &ldif->msg);
|
||||
ret = ldb_add(ldb, ldif->msg);
|
||||
break;
|
||||
case LDB_CHANGETYPE_DELETE:
|
||||
ret = ldb_delete(ldb, ldif->msg.dn);
|
||||
ret = ldb_delete(ldb, ldif->msg->dn);
|
||||
break;
|
||||
case LDB_CHANGETYPE_MODIFY:
|
||||
ret = ldb_modify(ldb, &ldif->msg);
|
||||
ret = ldb_modify(ldb, ldif->msg);
|
||||
break;
|
||||
}
|
||||
if (ret != 0) {
|
||||
fprintf(stderr, "ERR: \"%s\" on DN %s\n",
|
||||
ldb_errstring(ldb), ldif->msg.dn);
|
||||
ldb_errstring(ldb), ldif->msg->dn);
|
||||
failures++;
|
||||
} else {
|
||||
count++;
|
||||
|
||||
Reference in New Issue
Block a user