]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
Wrap verbose output dn with quotes.
authorKurt Zeilenga <kurt@openldap.org>
Tue, 19 Jan 1999 23:16:29 +0000 (23:16 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Tue, 19 Jan 1999 23:16:29 +0000 (23:16 +0000)
clients/tools/ldapdelete.c

index ea8c29fa00423aa98b6c8542c4ad6f2a3131d85b..e1cae1b82f4f8debed2d8ab462da14c81cb0307f 100644 (file)
@@ -144,7 +144,8 @@ static int dodelete(
     int        rc;
 
     if ( verbose ) {
-       printf( "%sdeleting entry %s\n", not ? "!" : "", dn );
+       printf( "%sdeleting entry \"%s\"\n",
+               (not ? "!" : ""), dn );
     }
     if ( not ) {
        rc = LDAP_SUCCESS;
@@ -152,7 +153,7 @@ static int dodelete(
        if (( rc = ldap_delete_s( ld, dn )) != LDAP_SUCCESS ) {
            ldap_perror( ld, "ldap_delete" );
        } else if ( verbose ) {
-           printf( "entry removed\n" );
+           printf( "\tremoved\n" );
        }
     }