From fe2361b85527bc90f698a1d06a13768cd881c6e6 Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Thu, 21 Jun 2001 20:32:04 +0000 Subject: [PATCH] Don't say "version: 2" --- clients/tools/ldapsearch.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/clients/tools/ldapsearch.c b/clients/tools/ldapsearch.c index e783ec1d2a..6758887de2 100644 --- a/clients/tools/ldapsearch.c +++ b/clients/tools/ldapsearch.c @@ -736,7 +736,6 @@ main( int argc, char **argv ) return EXIT_FAILURE; } - if ( use_tls && ldap_start_tls_s( ld, NULL, NULL ) != LDAP_SUCCESS ) { ldap_perror( ld, "ldap_start_tls" ); if ( use_tls > 1 ) { @@ -831,8 +830,10 @@ main( int argc, char **argv ) fprintf( stderr, "\n" ); } - if (ldif < 3 ) { - printf( "version: %d\n\n", ldif ? 1 : 2 ); + if ( ldif == 0 ) { + printf( "# extended LDIF\n" ); + } else if ( ldif < 3 ) { + printf( "version: %d\n\n", 1 ); } if (ldif < 2 ) { -- 2.39.5