diff --git a/kuser/kdestroy.c b/kuser/kdestroy.c index ec1d712ae..832c868cc 100644 --- a/kuser/kdestroy.c +++ b/kuser/kdestroy.c @@ -38,15 +38,19 @@ static const char *cache; static const char *credential; static int help_flag; static int version_flag; +#ifndef NO_AFS static int unlog_flag = 1; +#endif static int dest_tkt_flag = 1; struct getargs args[] = { { "credential", 0, arg_string, &credential, "remove one credential", "principal" }, { "cache", 'c', arg_string, &cache, "cache to destroy", "cache" }, +#ifndef NO_AFS { "unlog", 0, arg_negative_flag, &unlog_flag, "do not destroy tokens", NULL }, +#endif { "delete-v4", 0, arg_negative_flag, &dest_tkt_flag, "do not destroy v4 tickets", NULL }, { "version", 0, arg_flag, &version_flag, NULL, NULL }, @@ -141,10 +145,12 @@ main (int argc, char **argv) krb5_free_context (context); +#ifndef NO_AFS if (unlog_flag && k_hasafs ()) { if (k_unlog ()) exit_val = 1; } +#endif return exit_val; }