From fc6c7fefccd08b35f2f2c2a9ce956db0daeb7a25 Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Thu, 27 Jul 2000 23:08:48 +0000 Subject: [PATCH] Fix empty AND/OR search list bug --- clients/tools/ldapsearch.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/clients/tools/ldapsearch.c b/clients/tools/ldapsearch.c index 2365cdd8df..9c4c434cdd 100644 --- a/clients/tools/ldapsearch.c +++ b/clients/tools/ldapsearch.c @@ -583,7 +583,8 @@ main( int argc, char **argv ) } if (( argc - optind < 1 ) || - ( strchr( argv[optind], '=' ) == NULL ) ) + ( *argv[optind] != '(' /*')'*/ && + ( strchr( argv[optind], '=' ) == NULL ) ) ) { filtpattern = "(objectclass=*)"; } else { -- 2.39.5