From 21e49339b7a5186f2f3bd6080c2fb259e618d46e Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Fri, 1 Jul 2005 00:20:54 +0000 Subject: [PATCH] ITS#3820 fix olcReadOnly check --- servers/slapd/bconfig.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/servers/slapd/bconfig.c b/servers/slapd/bconfig.c index 1387bb43d8..ebbe436050 100644 --- a/servers/slapd/bconfig.c +++ b/servers/slapd/bconfig.c @@ -694,7 +694,8 @@ config_generic(ConfigArgs *c) { if ( !c->rvalue_vals ) rc = 1; break; case CFG_RO: - c->value_int = (c->be->be_restrictops & SLAP_RESTRICT_OP_WRITES) != 0; + c->value_int = (c->be->be_restrictops & SLAP_RESTRICT_OP_WRITES) == + SLAP_RESTRICT_OP_WRITES; break; case CFG_AZPOLICY: c->value_string = ch_strdup( slap_sasl_getpolicy()); -- 2.39.5