From 37ed2af7e7407a0a47ef112e905c4f01702703c1 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Thu, 12 May 2005 03:24:34 +0000 Subject: [PATCH] Fix for slapadd'ing a config db --- servers/slapd/bconfig.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/servers/slapd/bconfig.c b/servers/slapd/bconfig.c index b738a9871e..c6588f9699 100644 --- a/servers/slapd/bconfig.c +++ b/servers/slapd/bconfig.c @@ -2559,7 +2559,10 @@ read_config(const char *fname, const char *dir) { cfdir = SLAPD_DEFAULT_CONFIGDIR; } /* if fname is defaulted, try reading .d */ - if ( config_setup_ldif( be, cfdir, !fname )) + rc = config_setup_ldif( be, cfdir, !fname ); + + /* It's OK if the base object doesn't exist yet */ + if ( rc && rc != LDAP_NO_SUCH_OBJECT ) return 1; /* If we read the config from back-ldif, nothing to do here */ -- 2.39.5