From: Richard Basch Date: Tue, 11 Feb 1997 04:54:29 +0000 (+0000) Subject: login.c: set ccache name consistently with other login apps X-Git-Tag: krb5-1.1-beta1~1344 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=e499d1aa68ea41f8521f1118ae5b91ca83b75c6d;p=krb5.git 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 --- 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 * login.c (destroy_tickets main): Use a secure context +Wed May 22 22:46:40 1996 Richard Basch + + * login.c (k_init): Set the default KRB5CCNAME environment variable + consistently with other applications - FILE:/tmp/krb5cc_p + Thu May 9 00:09:14 1996 Richard Basch * 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 {