NO_AFS
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24385 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -38,15 +38,19 @@ static const char *cache;
|
|||||||
static const char *credential;
|
static const char *credential;
|
||||||
static int help_flag;
|
static int help_flag;
|
||||||
static int version_flag;
|
static int version_flag;
|
||||||
|
#ifndef NO_AFS
|
||||||
static int unlog_flag = 1;
|
static int unlog_flag = 1;
|
||||||
|
#endif
|
||||||
static int dest_tkt_flag = 1;
|
static int dest_tkt_flag = 1;
|
||||||
|
|
||||||
struct getargs args[] = {
|
struct getargs args[] = {
|
||||||
{ "credential", 0, arg_string, &credential,
|
{ "credential", 0, arg_string, &credential,
|
||||||
"remove one credential", "principal" },
|
"remove one credential", "principal" },
|
||||||
{ "cache", 'c', arg_string, &cache, "cache to destroy", "cache" },
|
{ "cache", 'c', arg_string, &cache, "cache to destroy", "cache" },
|
||||||
|
#ifndef NO_AFS
|
||||||
{ "unlog", 0, arg_negative_flag, &unlog_flag,
|
{ "unlog", 0, arg_negative_flag, &unlog_flag,
|
||||||
"do not destroy tokens", NULL },
|
"do not destroy tokens", NULL },
|
||||||
|
#endif
|
||||||
{ "delete-v4", 0, arg_negative_flag, &dest_tkt_flag,
|
{ "delete-v4", 0, arg_negative_flag, &dest_tkt_flag,
|
||||||
"do not destroy v4 tickets", NULL },
|
"do not destroy v4 tickets", NULL },
|
||||||
{ "version", 0, arg_flag, &version_flag, NULL, NULL },
|
{ "version", 0, arg_flag, &version_flag, NULL, NULL },
|
||||||
@@ -141,10 +145,12 @@ main (int argc, char **argv)
|
|||||||
|
|
||||||
krb5_free_context (context);
|
krb5_free_context (context);
|
||||||
|
|
||||||
|
#ifndef NO_AFS
|
||||||
if (unlog_flag && k_hasafs ()) {
|
if (unlog_flag && k_hasafs ()) {
|
||||||
if (k_unlog ())
|
if (k_unlog ())
|
||||||
exit_val = 1;
|
exit_val = 1;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
return exit_val;
|
return exit_val;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user