static char *strtok_quote(char *line, char *sep);
+/* the old interface for tools */
void
read_config( char *fname, Backend **bep, FILE *pfp )
+{
+ read_config_env( fname, bep, pfp, 0 );
+}
+
+/* the new interface for slapd */
+void
+read_config_env( char *fname, Backend **bep, FILE *pfp, int startup )
{
FILE *fp;
char *line, *savefname;
fname, lineno, 0 );
exit( 1 );
}
- default_referral = (char *) malloc( strlen( cargv[1] )
+ default_referral = (char *) ch_malloc( strlen( cargv[1] )
+ sizeof("Referral:\n") + 1 );
strcpy( default_referral, "Referral:\n" );
strcat( default_referral, cargv[1] );
}
}
fclose( fp );
+
+ if ( startup ) be_startup();
}
static void