mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-27 03:20:22 +08:00
ITS#6977 fix verbose check in client tools
This commit is contained in:
parent
d0973003f7
commit
d76be4828c
@ -318,7 +318,8 @@ main( int argc, char *argv[] )
|
||||
}
|
||||
}
|
||||
|
||||
if( verbose || ( code != LDAP_SUCCESS ) || matcheddn || text || refs ) {
|
||||
if( verbose || code != LDAP_SUCCESS ||
|
||||
( matcheddn && *matcheddn ) || ( text && *text ) || refs ) {
|
||||
printf( _("Result: %s (%d)\n"), ldap_err2string( code ), code );
|
||||
|
||||
if( text && *text ) {
|
||||
|
@ -374,7 +374,7 @@ main( int argc, char *argv[] )
|
||||
}
|
||||
|
||||
if( verbose || code != LDAP_SUCCESS ||
|
||||
matcheddn || text || refs || ctrls )
|
||||
( matcheddn && *matcheddn ) || ( text && *text ) || refs || ctrls )
|
||||
{
|
||||
printf( _("Result: %s (%d)\n"), ldap_err2string( code ), code );
|
||||
|
||||
|
@ -469,8 +469,8 @@ main( int argc, char *argv[] )
|
||||
}
|
||||
|
||||
skip:
|
||||
if ( verbose || ( code != LDAP_SUCCESS ) ||
|
||||
matcheddn || text || refs || ctrls )
|
||||
if ( verbose || code != LDAP_SUCCESS ||
|
||||
( matcheddn && *matcheddn ) || ( text && *text ) || refs || ctrls )
|
||||
{
|
||||
printf( _("Result: %s (%d)\n"), ldap_err2string( code ), code );
|
||||
|
||||
|
@ -199,8 +199,8 @@ main( int argc, char *argv[] )
|
||||
|
||||
skip:
|
||||
ldap_msgfree(res);
|
||||
if ( verbose || ( code != LDAP_SUCCESS ) ||
|
||||
matcheddn || text || refs || ctrls )
|
||||
if ( verbose || code != LDAP_SUCCESS ||
|
||||
( matcheddn && *matcheddn ) || ( text && *text ) || refs || ctrls )
|
||||
{
|
||||
printf( _("Result: %s (%d)\n"), ldap_err2string( code ), code );
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user