View | Details | Raw Unified | Return to bug 751 | Differences between
and this patch

Collapse All | Expand All

(-)src.old/gss-serv-krb5.c (-2 / +6 lines)
Lines 107-112 Link Here
107
	krb5_ccache ccache;
107
	krb5_ccache ccache;
108
	krb5_error_code problem;
108
	krb5_error_code problem;
109
	krb5_principal princ;
109
	krb5_principal princ;
110
	const char *ccache_name, *ccache_type;
110
	OM_uint32 maj_status, min_status;
111
	OM_uint32 maj_status, min_status;
111
112
112
	if (client->creds == NULL) {
113
	if (client->creds == NULL) {
Lines 176-184 Link Here
176
		return;
177
		return;
177
	}
178
	}
178
179
179
	client->store.filename = xstrdup(krb5_cc_get_name(krb_context, ccache));
180
	ccache_type = krb5_cc_get_type(krb_context, ccache);
181
	ccache_name = krb5_cc_get_name(krb_context, ccache);
182
	client->store.filename = xstrdup(ccache_name);
180
	client->store.envvar = "KRB5CCNAME";
183
	client->store.envvar = "KRB5CCNAME";
181
	client->store.envval = xstrdup(client->store.filename);
184
	client->store.envval = xmalloc(strlen(ccache_type)+strlen(ccache_name)+2);
185
	sprintf(client->store.envval, "%s:%s", ccache_type, ccache_name);
182
186
183
#ifdef USE_PAM
187
#ifdef USE_PAM
184
	if (options.use_pam)
188
	if (options.use_pam)

Return to bug 751