Skip to content
Snippets Groups Projects
Commit 95b11539 authored by Pierangelo Masarati's avatar Pierangelo Masarati
Browse files

improve last commit

parent e24f55b2
No related branches found
No related tags found
No related merge requests found
......@@ -279,15 +279,15 @@ slap_tool_init(
exit( EXIT_FAILURE );
}
if ( nosubordinates == 0 ) {
if ( nosubordinates == 0 && dbnum > 0 ) {
#ifdef NEW_LOGGING
LDAP_LOG( BACKEND, ERR,
"The first database does not allow %s; using the first available one\n",
name, 0, 0 );
"The first database does not allow %s; using the first available one (%d)\n",
name, (int)(be - &backends[0]) + 1, 0 );
#else
Debug( LDAP_DEBUG_ANY,
"The first database does not allow %s; using the first available one\n",
name, 0, 0 );
"The first database does not allow %s; using the first available one (%d)\n",
name, (int)(be - &backends[0]) + 1, 0 );
#endif
}
......
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