Skip to content
Snippets Groups Projects
Commit 9cf45220 authored by Howard Chu's avatar Howard Chu
Browse files

ITS#3186 don't print error when empty DN "" is the only thing missing

parent 0b24ae9a
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment