Don't eat KRB5CCNAME.
authorIain Patterson <me@iain.cx>
Thu, 27 Oct 2011 09:51:30 +0000 (10:51 +0100)
committerIain Patterson <me@iain.cx>
Thu, 27 Oct 2011 09:54:05 +0000 (10:54 +0100)
.profile.d/krb5.bashrc

index 477dc3f..2ca4337 100644 (file)
@@ -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+"$@"} )
 }