krb5 commit: Fix klist -A -s output

Greg Hudson ghudson at mit.edu
Mon Oct 13 00:22:43 EDT 2014


https://github.com/krb5/krb5/commit/60b368b1b89b59924b2fde6d8a8ed8ef7e07bc1b
commit 60b368b1b89b59924b2fde6d8a8ed8ef7e07bc1b
Author: Greg Hudson <ghudson at mit.edu>
Date:   Sat Oct 4 22:49:54 2014 -0400

    Fix klist -A -s output
    
    In show_all_ccaches, don't output newlines if status_only is set.

 src/clients/klist/klist.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/clients/klist/klist.c b/src/clients/klist/klist.c
index a10451d..1d189b4 100644
--- a/src/clients/klist/klist.c
+++ b/src/clients/klist/klist.c
@@ -439,7 +439,7 @@ show_all_ccaches(void)
     first = TRUE;
     while (!(code = krb5_cccol_cursor_next(kcontext, cursor, &cache)) &&
            cache != NULL) {
-        if (!first)
+        if (!status_only && !first)
             printf("\n");
         first = FALSE;
         st = status_only ? check_ccache(cache) : show_ccache(cache);


More information about the cvs-krb5 mailing list