summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard Basch <probe@mit.edu>1997-02-11 04:54:29 +0000
committerRichard Basch <probe@mit.edu>1997-02-11 04:54:29 +0000
commite499d1aa68ea41f8521f1118ae5b91ca83b75c6d (patch)
treefee82b3ae7684cfa2872672a514008b0f7f1b9ef /src
parentf1193652cdef6dc1cf14aa2f910a416f737aca72 (diff)
downloadkrb5-e499d1aa68ea41f8521f1118ae5b91ca83b75c6d.tar.gz
krb5-e499d1aa68ea41f8521f1118ae5b91ca83b75c6d.tar.xz
krb5-e499d1aa68ea41f8521f1118ae5b91ca83b75c6d.zip
login.c: set ccache name consistently with other login apps
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9847 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src')
-rw-r--r--src/appl/bsd/ChangeLog5
-rw-r--r--src/appl/bsd/login.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/src/appl/bsd/ChangeLog b/src/appl/bsd/ChangeLog
index b06fc6a08..5cb08d5ef 100644
--- a/src/appl/bsd/ChangeLog
+++ b/src/appl/bsd/ChangeLog
@@ -302,6 +302,11 @@ Sun May 19 15:22:06 1996 Sam Hartman <hartmans@mit.edu>
* login.c (destroy_tickets main): Use a secure context
+Wed May 22 22:46:40 1996 Richard Basch <basch@lehman.com>
+
+ * login.c (k_init): Set the default KRB5CCNAME environment variable
+ consistently with other applications - FILE:/tmp/krb5cc_p<pid>
+
Thu May 9 00:09:14 1996 Richard Basch <basch@lehman.com>
* krlogind.c krshd.c:
diff --git a/src/appl/bsd/login.c b/src/appl/bsd/login.c
index ea978e6d0..659a8bdc0 100644
--- a/src/appl/bsd/login.c
+++ b/src/appl/bsd/login.c
@@ -482,7 +482,7 @@ void k_init (ttyn)
/* Set up the credential cache environment variable */
if (!getenv(KRB5_ENV_CCNAME)) {
- sprintf(ccfile, "FILE:/tmp/krb5cc_%s", strrchr(ttyn, '/')+1);
+ sprintf(ccfile, "FILE:/tmp/krb5cc_p%d", getpid());
setenv(KRB5_ENV_CCNAME, ccfile, 1);
unlink(ccfile+strlen("FILE:"));
} else {