From 5ebbb9bd5886a38c24dbb2c71d95a2b09d7b66c6 Mon Sep 17 00:00:00 2001 From: Tom Yu Date: Wed, 24 Jan 2001 04:22:43 +0000 Subject: [PATCH] * forward.c (rd_and_store_for_creds): Overwrite any existing value of the KRB5CCNAME environment variable. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12937 dc483132-0cff-0310-8789-dd5450dbe970 --- src/appl/bsd/ChangeLog | 5 +++++ src/appl/bsd/forward.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/appl/bsd/ChangeLog b/src/appl/bsd/ChangeLog index d0bd3a66c..182bf0d2d 100644 --- a/src/appl/bsd/ChangeLog +++ b/src/appl/bsd/ChangeLog @@ -1,3 +1,8 @@ +2001-01-23 Tom Yu + + * forward.c (rd_and_store_for_creds): Overwrite any existing value + of the KRB5CCNAME environment variable. + 2001-01-16 Ken Raeburn * krcp.c (error): Always declare with ellipsis. diff --git a/src/appl/bsd/forward.c b/src/appl/bsd/forward.c index e22fc1d98..e47b8ff16 100644 --- a/src/appl/bsd/forward.c +++ b/src/appl/bsd/forward.c @@ -51,7 +51,7 @@ rd_and_store_for_creds(context, auth_context, inbuf, ticket, ccache) */ sprintf(ccname, "FILE:/tmp/krb5cc_p%d", getpid()); - setenv("KRB5CCNAME", ccname, 0); + setenv("KRB5CCNAME", ccname, 1); if (retval = krb5_cc_resolve(context, ccname, ccache)) goto cleanup; -- 2.26.2