break;
case 'n': /* which config file db to index */
- dbnum = atoi( optarg ) - 1;
+ dbnum = atoi( optarg );
break;
case 'q': /* turn on quick */
break;
}
+ ldap_syslog = 0;
+
if ( ldiffile == NULL ) {
ldiffp = tool == SLAPCAT ? stdout : stdin;
}
at_oc_cache = 1;
- ldap_syslog = 0;
switch ( tool ) {
case SLAPADD:
exit( EXIT_FAILURE );
}
- be = &backends[dbnum=0];
+ be = &backends[dbnum=1];
/* If just doing the first by default and it is a
* glue subordinate, find the master.
*/