]> git.ipfire.org Git - thirdparty/krb5.git/commitdiff
Fix klist -A -s output
authorGreg Hudson <ghudson@mit.edu>
Sun, 5 Oct 2014 02:49:54 +0000 (22:49 -0400)
committerGreg Hudson <ghudson@mit.edu>
Mon, 13 Oct 2014 04:08:13 +0000 (00:08 -0400)
In show_all_ccaches, don't output newlines if status_only is set.

src/clients/klist/klist.c

index a10451d35ab0e9651eac271a89c70d70b587ffc7..1d189b44ec5420add90415ce34c3bd0a65953481 100644 (file)
@@ -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);