mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
This really should work... but it's no more broken than last commit
This commit is contained in:
parent
a61b777cdc
commit
5b49e1a9c5
@ -307,7 +307,8 @@ str2entry( char *s )
|
||||
return NULL;
|
||||
}
|
||||
|
||||
e->e_nname = *ndn;
|
||||
e->e_nname.bv_val = ndn->bv_val;
|
||||
e->e_nname.bv_len = ndn->bv_len;
|
||||
free( ndn );
|
||||
}
|
||||
|
||||
|
@ -121,7 +121,7 @@ slap_tool_init(
|
||||
switch ( i ) {
|
||||
case 'b':
|
||||
base.bv_val = strdup( optarg );
|
||||
base.bv_len = strlen( optarg );
|
||||
base.bv_len = strlen( base.bv_val );
|
||||
|
||||
case 'c': /* enable continue mode */
|
||||
continuemode++;
|
||||
@ -226,7 +226,7 @@ slap_tool_init(
|
||||
|
||||
if( be == NULL ) {
|
||||
fprintf( stderr, "%s: slap_init no backend for \"%s\"\n",
|
||||
progname, base );
|
||||
progname, base.bv_val );
|
||||
exit( EXIT_FAILURE );
|
||||
}
|
||||
/* If the named base is a glue master, operate on the
|
||||
@ -248,7 +248,8 @@ slap_tool_init(
|
||||
} else if ( dbnum < 0 || dbnum > (nbackends-1) ) {
|
||||
fprintf( stderr,
|
||||
"Database number selected via -n is out of range\n"
|
||||
"Must be in the range 1 to %d (number of databases in the config file)\n",
|
||||
"Must be in the range 1 to %d"
|
||||
" (number of databases in the config file)\n",
|
||||
nbackends );
|
||||
exit( EXIT_FAILURE );
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user