From: Pierangelo Masarati Date: Tue, 25 Apr 2006 23:33:51 +0000 (+0000) Subject: note when the default base is being used (more about ITS#4504) X-Git-Tag: OPENLDAP_REL_ENG_2_4_1ALPHA~2^2~144 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=e8e153e4a8f6bf01d3785a74d58c3885730e711a;p=openldap note when the default base is being used (more about ITS#4504) --- diff --git a/clients/tools/ldapsearch.c b/clients/tools/ldapsearch.c index 73fdc9087a..3fb57bffad 100644 --- a/clients/tools/ldapsearch.c +++ b/clients/tools/ldapsearch.c @@ -907,8 +907,9 @@ getNextPage: printf( "#\n" ); printf(_("# LDAPv%d\n"), protocol); - printf(_("# base <%s> with scope %s\n"), - realbase ? realbase : "(NULL)", + printf(_("# base <%s>%s with scope %s\n"), + realbase ? realbase : "", + ( realbase == NULL || realbase != base ) ? " (default)" : "", ((scope == LDAP_SCOPE_BASE) ? "baseObject" : ((scope == LDAP_SCOPE_ONELEVEL) ? "oneLevel" : ((scope == LDAP_SCOPE_SUBORDINATE) ? "children"