From: Kurt Zeilenga Date: Mon, 21 Aug 2000 03:08:01 +0000 (+0000) Subject: Fix callback check logic X-Git-Tag: LDBM_PRE_GIANT_RWLOCK~2215 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=160ecea6b1c6ca5aa2a2af706ac62da02e6a8e3b;p=openldap Fix callback check logic --- diff --git a/servers/slapd/tools/slapadd.c b/servers/slapd/tools/slapadd.c index c66cde05f3..55cf92408c 100644 --- a/servers/slapd/tools/slapadd.c +++ b/servers/slapd/tools/slapadd.c @@ -26,8 +26,8 @@ main( int argc, char **argv ) slap_tool_init( "slapadd", SLAPADD, argc, argv ); - if( !be->be_entry_open && - !be->be_entry_close && + if( !be->be_entry_open || + !be->be_entry_close || !be->be_entry_put ) { fprintf( stderr, "%s: database doesn't support necessary operations.\n", diff --git a/servers/slapd/tools/slapcat.c b/servers/slapd/tools/slapcat.c index 905bcbb605..a8b69a89e7 100644 --- a/servers/slapd/tools/slapcat.c +++ b/servers/slapd/tools/slapcat.c @@ -22,10 +22,10 @@ main( int argc, char **argv ) slap_tool_init( "slapcat", SLAPCAT, argc, argv ); - if( !be->be_entry_open && - !be->be_entry_close && - !be->be_entry_first && - !be->be_entry_next && + if( !be->be_entry_open || + !be->be_entry_close || + !be->be_entry_first || + !be->be_entry_next || !be->be_entry_get ) { fprintf( stderr, "%s: database doesn't support necessary operations.\n",