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 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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user