git://git.iain.cx/iain
/
profile.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Latest rxvt-unicode terminfo.
[profile.git]
/
.profile.d
/
krb5.bashrc
diff --git
a/.profile.d/krb5.bashrc
b/.profile.d/krb5.bashrc
index
477dc3f
..
034dadd
100644
(file)
--- a/
.profile.d/krb5.bashrc
+++ b/
.profile.d/krb5.bashrc
@@
-87,5
+87,11
@@
fi
unset cache ccname default ng
function kinit() {
unset cache ccname default ng
function kinit() {
- ( builtin cd /; exec -c kinit ${1+"$@"} )
+ local args=
+ local krb5ccname=
+ if [ -n "$KRB5CCNAME" ]; then
+ args="$@"
+ [ "${args/-c /}" = "$args" ] && krb5ccname="-c $KRB5CCNAME"
+ fi
+ ( builtin cd /; exec -c kinit $krb5ccname ${1+"$@"} )
}
}