From 9171892bd9f8c861cede393efadd70ae6bd1e1ab Mon Sep 17 00:00:00 2001
From: Kurt Zeilenga <kurt@openldap.org>
Date: Tue, 29 Dec 1998 05:44:18 +0000
Subject: [PATCH] Should have left 'scope' alone.

---
 clients/tools/ldappasswd.c | 2 +-
 clients/tools/ldapsearch.c | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/clients/tools/ldappasswd.c b/clients/tools/ldappasswd.c
index 03d2fccb46..54b5bc4bf5 100644
--- a/clients/tools/ldappasswd.c
+++ b/clients/tools/ldappasswd.c
@@ -360,7 +360,7 @@ main (int argc, char *argv[])
 	int		i, j;
 	int		ldapport = 0;
 	int		debug = 0;
-	int		scope = -1;
+	int		scope = LDAP_SCOPE_SUBTREE;
 	int		sizelimit = -1;
 	int		timelimit = -1;
 	int		version = -1;
diff --git a/clients/tools/ldapsearch.c b/clients/tools/ldapsearch.c
index 254cc59e98..9fb538bcbe 100644
--- a/clients/tools/ldapsearch.c
+++ b/clients/tools/ldapsearch.c
@@ -96,9 +96,9 @@ main( int argc, char **argv )
     debug = verbose = allow_binary = not = vals2tmp =
 	    attrsonly = ldif = want_bindpw = 0;
 
-	deref = referrals = sizelimit = timelimit =
-    	scope = version = -1;
+	deref = referrals = sizelimit = timelimit = version = -1;
 
+	scope = LDAP_SCOPE_SUBTREE;
     authmethod = LDAP_AUTH_SIMPLE;
 
     while (( i = getopt( argc, argv, "WKknuvtRABLD:s:f:h:b:d:P:p:F:a:w:l:z:S:")) != EOF ) {
-- 
GitLab