From 4d85c307c436fb1d9bbbaf338b36c65a5c98c87c Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Fri, 12 May 2006 07:56:20 +0000 Subject: [PATCH] ITS#4453 don't print error message on stdout --- clients/tools/ldapdelete.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/clients/tools/ldapdelete.c b/clients/tools/ldapdelete.c index 8bbc1c4663..2e7d42f82b 100644 --- a/clients/tools/ldapdelete.c +++ b/clients/tools/ldapdelete.c @@ -261,8 +261,10 @@ static int dodelete( return rc; } - if( verbose || code != LDAP_SUCCESS || - (matcheddn && *matcheddn) || (text && *text) || (refs && *refs) ) + if( code != LDAP_SUCCESS ) { + tool_perror( "ldap_delete", code, NULL, matcheddn, text, refs ); + } else if ( verbose && + ((matcheddn && *matcheddn) || (text && *text) || (refs && *refs) )) { printf( _("Delete Result: %s (%d)\n"), ldap_err2string( code ), code ); -- 2.39.5