summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/appl/telnet/libtelnet/ChangeLog5
-rw-r--r--src/appl/telnet/libtelnet/forward.c12
2 files changed, 6 insertions, 11 deletions
diff --git a/src/appl/telnet/libtelnet/ChangeLog b/src/appl/telnet/libtelnet/ChangeLog
index 8cb56165c..63835ba61 100644
--- a/src/appl/telnet/libtelnet/ChangeLog
+++ b/src/appl/telnet/libtelnet/ChangeLog
@@ -1,3 +1,8 @@
+Fri Apr 12 23:36:01 1996 Richard Basch <basch@lehman.com>
+
+ * forward.c (rd_and_store_for_creds): Consistency with the
+ krlogind forwarded credentials cache naming scheme - krb5cc_p<pid>
+
Thu Apr 11 21:45:21 1996 Richard Basch <basch@lehman.com>
* forward.c (rd_and_store_for_creds): If we are going to use a
diff --git a/src/appl/telnet/libtelnet/forward.c b/src/appl/telnet/libtelnet/forward.c
index 025a134eb..a0ea5b34f 100644
--- a/src/appl/telnet/libtelnet/forward.c
+++ b/src/appl/telnet/libtelnet/forward.c
@@ -54,17 +54,7 @@ rd_and_store_for_creds(context, auth_context, inbuf, ticket, lusername)
if (retval = krb5_rd_cred(context, auth_context, inbuf, &creds, NULL))
return(retval);
- if (*line && (tty = strchr(line, '/')) && (tty = strchr(tty+1, '/'))) {
- ++tty;
- sprintf(ccname, "FILE:/tmp/krb5cc_%s", tty);
- while (tty = strchr(tty, '/')) {
- tty++;
- *((char *)strrchr(ccname, '/')) = '_';
- }
- } else
- /* since default will be based on uid and we haven't changed yet */
- sprintf(ccname, "FILE:/tmp/krb5cc_%d", pwd->pw_uid);
-
+ sprintf(ccname, "FILE:/tmp/krb5cc_p%d", getpid());
setenv(KRB5_ENV_CCNAME, ccname, 1);
if (retval = krb5_cc_resolve(context, ccname, &ccache))