]> git.sur5r.net Git - openldap/commitdiff
note when the default base is being used (more about ITS#4504)
authorPierangelo Masarati <ando@openldap.org>
Tue, 25 Apr 2006 23:33:51 +0000 (23:33 +0000)
committerPierangelo Masarati <ando@openldap.org>
Tue, 25 Apr 2006 23:33:51 +0000 (23:33 +0000)
clients/tools/ldapsearch.c

index 73fdc9087ab353263a9b8e8d1a242c6d4491b113..3fb57bffad9ce82cd1ac803fea10c884f8a48926 100644 (file)
@@ -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"