Bugzilla – Attachment 491 Details for
Bug 751
KRB5CCNAME set incorrectly in GSSAPI code
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Another patch to set KRB5CCNAME correctly in GSSAPI code
openssh-3.7.1p2-krb5ccname-patch.txt (text/plain), 983 bytes, created by
Steven Michaud
on 2003-10-31 07:36:58 AEDT
(
hide
)
Description:
Another patch to set KRB5CCNAME correctly in GSSAPI code
Filename:
MIME Type:
Creator:
Steven Michaud
Created:
2003-10-31 07:36:58 AEDT
Size:
983 bytes
patch
obsolete
>diff -u -r src.old/gss-serv-krb5.c src/gss-serv-krb5.c >--- src.old/gss-serv-krb5.c Thu Oct 30 14:38:18 2003 >+++ src/gss-serv-krb5.c Thu Oct 30 14:38:17 2003 >@@ -107,6 +107,7 @@ > krb5_ccache ccache; > krb5_error_code problem; > krb5_principal princ; >+ const char *ccache_name, *ccache_type; > OM_uint32 maj_status, min_status; > > if (client->creds == NULL) { >@@ -176,9 +177,13 @@ > return; > } > >- client->store.filename = xstrdup(krb5_cc_get_name(krb_context, ccache)); >+ ccache_type = krb5_cc_get_type(krb_context, ccache); >+ ccache_name = krb5_cc_get_name(krb_context, ccache); >+ if (strcmp(ccache_type, "FILE") == 0) >+ client->store.filename = xstrdup(ccache_name); > client->store.envvar = "KRB5CCNAME"; >- client->store.envval = xstrdup(client->store.filename); >+ client->store.envval = xmalloc(strlen(ccache_type)+strlen(ccache_name)+2); >+ sprintf(client->store.envval, "%s:%s", ccache_type, ccache_name); > > #ifdef USE_PAM > if (options.use_pam)
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 751
:
490
| 491