[28617] in CVS-changelog-for-Kerberos-V5

home help back first fref pref prev next nref lref last post

krb5 commit: Fix klist -A -s output

daemon@ATHENA.MIT.EDU (Greg Hudson)
Mon Oct 13 00:58:59 2014

Date: Mon, 13 Oct 2014 00:22:43 -0400
From: Greg Hudson <ghudson@mit.edu>
Message-Id: <201410130422.s9D4Mhjd010947@drugstore.mit.edu>
To: cvs-krb5@mit.edu
Reply-To: krbdev@mit.edu
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: cvs-krb5-bounces@mit.edu

https://github.com/krb5/krb5/commit/60b368b1b89b59924b2fde6d8a8ed8ef7e07bc1b
commit 60b368b1b89b59924b2fde6d8a8ed8ef7e07bc1b
Author: Greg Hudson <ghudson@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);
_______________________________________________
cvs-krb5 mailing list
cvs-krb5@mit.edu
https://mailman.mit.edu/mailman/listinfo/cvs-krb5

home help back first fref pref prev next nref lref last post