diff options
| author | Barry Jaspan <bjaspan@mit.edu> | 1990-07-02 19:42:33 +0000 |
|---|---|---|
| committer | Barry Jaspan <bjaspan@mit.edu> | 1990-07-02 19:42:33 +0000 |
| commit | 800d5ed09ac23b0c9b0a35008f7bf243768f2d51 (patch) | |
| tree | 43a17a81ea967300ee688678c08bdbe5bcc56e9f | |
| parent | db3f4e97dcb517a7ea039bd90bf9dcdd356ead59 (diff) | |
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
| -rw-r--r-- | src/clients/klist/klist.c | 11 |
1 files 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); } |
