From 160ecea6b1c6ca5aa2a2af706ac62da02e6a8e3b Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Mon, 21 Aug 2000 03:08:01 +0000 Subject: [PATCH] Fix callback check logic --- servers/slapd/tools/slapadd.c | 4 ++-- servers/slapd/tools/slapcat.c | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) 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", -- 2.39.5