Skip to content
Snippets Groups Projects
Commit d76be482 authored by Howard Chu's avatar Howard Chu
Browse files

ITS#6977 fix verbose check in client tools

parent d0973003
No related branches found
No related tags found
No related merge requests found
......@@ -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 );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment