diff options
author | Greg Hudson <ghudson@mit.edu> | 2014-10-04 22:49:54 -0400 |
---|---|---|
committer | Greg Hudson <ghudson@mit.edu> | 2014-10-13 00:08:13 -0400 |
commit | 60b368b1b89b59924b2fde6d8a8ed8ef7e07bc1b (patch) | |
tree | e387f8ca2cc7a3d80d114d27a591464db86c1727 | |
parent | 922f627b28f480eafc240fb4706cacf6aa7f4c14 (diff) | |
download | krb5-60b368b1b89b59924b2fde6d8a8ed8ef7e07bc1b.tar.gz krb5-60b368b1b89b59924b2fde6d8a8ed8ef7e07bc1b.tar.xz krb5-60b368b1b89b59924b2fde6d8a8ed8ef7e07bc1b.zip |
Fix klist -A -s output
In show_all_ccaches, don't output newlines if status_only is set.
-rw-r--r-- | 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 a10451d35..1d189b44e 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); |