From 97b2277b95d8b271d95f344af2cf696c378cf552 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Sun, 25 Jan 2009 00:32:11 +0000 Subject: [PATCH] move rcsid, make afs optional git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24365 ec53bebd-3082-4978-b11e-865c3cabbd6b --- kuser/klist.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/kuser/klist.c b/kuser/klist.c index 770add4a4..03d1868c9 100644 --- a/kuser/klist.c +++ b/kuser/klist.c @@ -360,6 +360,8 @@ check_for_tgt (krb5_context context, * Print a list of all AFS tokens */ +#ifndef NO_AFS + static void display_tokens(int do_verbose) { @@ -425,6 +427,7 @@ display_tokens(int do_verbose) putchar('\n'); } } +#endif /* * display the ccache in `cred_cache' @@ -551,7 +554,9 @@ static int help_flag = 0; static int do_verbose = 0; static int do_list_caches = 0; static int do_test = 0; +#ifndef NO_AFS static int do_tokens = 0; +#endif static int do_v5 = 1; static char *cred_cache; static int do_flags = 0; @@ -564,8 +569,10 @@ static struct getargs args[] = { { "test", 't', arg_flag, &do_test, NP_("test for having tickets", ""), NULL }, { NULL, 's', arg_flag, &do_test }, +#ifndef NO_AFS { "tokens", 'T', arg_flag, &do_tokens, NP_("display AFS tokens", ""), NULL }, +#endif { "v5", '5', arg_flag, &do_v5, NP_("display v5 cred cache", ""), NULL}, { "list-caches", 'l', arg_flag, &do_list_caches, @@ -633,11 +640,13 @@ main (int argc, char **argv) do_verbose, do_flags, do_hidden); if (!do_test) { +#ifndef NO_AFS if (do_tokens && k_hasafs ()) { if (do_v5) printf ("\n"); display_tokens (do_verbose); } +#endif } return exit_status;