From 170de200f864920b99afbcb4b8085992bb4aaf18 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Thu, 11 Apr 2002 08:51:35 +0000 Subject: [PATCH] ITS#1734 return error on bad config file --- servers/slapd/tools/slapcommon.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/servers/slapd/tools/slapcommon.c b/servers/slapd/tools/slapcommon.c index bcea08993f..abe5b7abeb 100644 --- a/servers/slapd/tools/slapcommon.c +++ b/servers/slapd/tools/slapcommon.c @@ -195,7 +195,12 @@ slap_tool_init( exit( EXIT_FAILURE ); } - read_config( conffile ); + rc = read_config( conffile ); + + if ( rc != 0 ) { + fprintf( stderr, "%s: bad configuration file!\n", progname ); + exit( EXIT_FAILURE ); + } if ( !nbackends ) { fprintf( stderr, "No databases found in config file\n" ); -- 2.39.5