From: Kurt Zeilenga Date: Thu, 21 Jun 2001 20:32:04 +0000 (+0000) Subject: Don't say "version: 2" X-Git-Tag: LDBM_PRE_GIANT_RWLOCK~1296 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=fe2361b85527bc90f698a1d06a13768cd881c6e6;p=openldap Don't say "version: 2" --- 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 ) {