]> git.sur5r.net Git - openldap/commitdiff
Fix the logic for checking if backend DB has all necessary functions.
authorMark Adamson <adamson@openldap.org>
Fri, 18 Aug 2000 16:58:46 +0000 (16:58 +0000)
committerMark Adamson <adamson@openldap.org>
Fri, 18 Aug 2000 16:58:46 +0000 (16:58 +0000)
servers/slapd/tools/slapindex.c

index 867e244cbd4d2b9bc12e3b8a4d28caa895c7c634..86aff99b4cece141f4af3e95af2c617856dbb7be 100644 (file)
@@ -24,10 +24,10 @@ main( int argc, char **argv )
 
        slap_tool_init( "slapindex", SLAPINDEX, 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_reindex )
        {
                fprintf( stderr, "%s: database doesn't support necessary operations.\n",