From: Iain Patterson Date: Thu, 27 Oct 2011 09:51:30 +0000 (+0100) Subject: Don't eat KRB5CCNAME. X-Git-Url: http://git.iain.cx/?a=commitdiff_plain;h=420d53684c26ea568836cb12e1d98e8d8c49b6c3;p=profile.git Don't eat KRB5CCNAME. --- diff --git a/.profile.d/krb5.bashrc b/.profile.d/krb5.bashrc index 477dc3f..2ca4337 100644 --- a/.profile.d/krb5.bashrc +++ b/.profile.d/krb5.bashrc @@ -87,5 +87,6 @@ fi unset cache ccname default ng function kinit() { - ( builtin cd /; exec -c kinit ${1+"$@"} ) + [ -n "$KRB5CCNAME" ] && krb5ccname="env KRB5CCNAME=$KRB5CCNAME" + ( builtin cd /; exec -c $krb5ccname kinit ${1+"$@"} ) }