kinit: Do not switch cache when --default-for given

Unless --change-default is also given.
This commit is contained in:
Nicolas Williams
2021-03-31 21:07:18 -05:00
parent 5443189b96
commit b0e5c471f6

View File

@@ -65,7 +65,7 @@ static krb5_principal tgs_service;
char *cred_cache = NULL;
char *start_str = NULL;
static int default_for = 0;
static int switch_cache_flags = 1;
static int switch_cache_flags = -1;
struct getarg_strings etype_str;
int use_keytab = 0;
char *keytab_str = NULL;