From: Greg Hudson Date: Sun, 5 Oct 2014 02:49:54 +0000 (-0400) Subject: Fix klist -A -s output X-Git-Tag: krb5-1.14-alpha1~226 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=60b368b1b89b59924b2fde6d8a8ed8ef7e07bc1b;p=thirdparty%2Fkrb5.git Fix klist -A -s output In show_all_ccaches, don't output newlines if status_only is set. --- diff --git a/src/clients/klist/klist.c b/src/clients/klist/klist.c index a10451d35a..1d189b44ec 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);