From 800d5ed09ac23b0c9b0a35008f7bf243768f2d51 Mon Sep 17 00:00:00 2001 From: Barry Jaspan Date: Mon, 2 Jul 1990 19:42:33 +0000 Subject: [PATCH] ticket_flags field of each credentials structure. Not terribly useful except for debugging. bjaspan: added the -f option which turns on the display of the git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@1014 dc483132-0cff-0310-8789-dd5450dbe970 --- src/clients/klist/klist.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/clients/klist/klist.c b/src/clients/klist/klist.c index b769a4e79..a42115ecb 100644 --- a/src/clients/klist/klist.c +++ b/src/clients/klist/klist.c @@ -32,6 +32,7 @@ main(argc, argv) { int c; int errflg = 0; + int show_flags = 0; int code; krb5_ccache cache = NULL; krb5_cc_cursor cur; @@ -48,8 +49,11 @@ main(argc, argv) if (rindex(argv[0], '/')) argv[0] = rindex(argv[0], '/')+1; - while ((c = getopt(argc, argv, "c:")) != EOF) { + while ((c = getopt(argc, argv, "fc:")) != EOF) { switch (c) { + case 'f': + show_flags = 1; + break; case 'c': if (cache == NULL) { cache_name = optarg; @@ -123,7 +127,10 @@ main(argc, argv) free(name); continue; } - printf("C: %s\tS:%s\n", name, sname); + if (show_flags) + printf("C: %s\tS: %s\tF: %d\n", name, sname, creds.ticket_flags); + else + printf("C: %s\tS: %s\n", name, sname); free(name); free(sname); } -- 2.26.2