]> git.sur5r.net Git - openldap/commitdiff
Fix callback check logic
authorKurt Zeilenga <kurt@openldap.org>
Mon, 21 Aug 2000 03:08:01 +0000 (03:08 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Mon, 21 Aug 2000 03:08:01 +0000 (03:08 +0000)
servers/slapd/tools/slapadd.c
servers/slapd/tools/slapcat.c

index c66cde05f3e4eccd4934719498cb3b7cb4a40d62..55cf92408c3b68482d41e263cc337c1a33efd512 100644 (file)
@@ -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",
index 905bcbb605d2ce835f00e2fe4397996d85dce742..a8b69a89e7ac1fa01d0c46bb1c862d61404bf65d 100644 (file)
@@ -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",