mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-30 18:39:28 -05:00
ITS#3186 don't print error when empty DN "" is the only thing missing
This commit is contained in:
parent
0b24ae9a12
commit
9cf45220d2
1 changed files with 11 additions and 4 deletions
|
|
@ -68,12 +68,19 @@ int bdb_tool_entry_close(
|
|||
|
||||
if( nholes ) {
|
||||
unsigned i;
|
||||
fprintf( stderr, "Error, entries missing!\n");
|
||||
int fail=0, warn=1;
|
||||
for (i=0; i<nholes; i++) {
|
||||
fprintf(stderr, " entry %ld: %s\n",
|
||||
holes[i].id, holes[i].dn.bv_val);
|
||||
if (holes[i].dn.bv_len) {
|
||||
fail=1;
|
||||
if (warn) {
|
||||
fprintf( stderr, "Error, entries missing!\n");
|
||||
warn=0;
|
||||
}
|
||||
fprintf(stderr, " entry %ld: %s\n",
|
||||
holes[i].id, holes[i].dn.bv_val);
|
||||
}
|
||||
}
|
||||
return -1;
|
||||
if (fail) return -1;
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
|
|
|||
Loading…
Reference in a new issue