login.c: set ccache name consistently with other login apps
authorRichard Basch <probe@mit.edu>
Tue, 11 Feb 1997 04:54:29 +0000 (04:54 +0000)
committerRichard Basch <probe@mit.edu>
Tue, 11 Feb 1997 04:54:29 +0000 (04:54 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9847 dc483132-0cff-0310-8789-dd5450dbe970

src/appl/bsd/ChangeLog
src/appl/bsd/login.c

index b06fc6a08760fc58c900b3e0a3127a1e5017a36b..5cb08d5ef18d170f3f4de21d5408309ea175e411 100644 (file)
@@ -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:
index ea978e6d0ddc050ace2b7e03725cd80ad5de5993..659a8bdc04ace53b0a6b6efb51b783da95eca3e2 100644 (file)
@@ -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 {