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
Allow X multiplier for usize.
[profile.git]
/
.profile.d
/
krb5.bashrc
diff --git
a/.profile.d/krb5.bashrc
b/.profile.d/krb5.bashrc
index
9938a30
..
034dadd
100644
(file)
--- a/
.profile.d/krb5.bashrc
+++ b/
.profile.d/krb5.bashrc
@@
-2,7
+2,7
@@
alias kssh='ssh -o preferredauthentications=gssapi-with-mic'
alias pssh='ssh -o preferredauthentications=password,keyboard-interactive'
unalias kinit 2>/dev/null
alias pssh='ssh -o preferredauthentications=password,keyboard-interactive'
unalias kinit 2>/dev/null
-if [ -z "$OLDSOLARIS" -a -z "$OLDREDHAT" ]; then
+if [
1 = 0 -a
-z "$OLDSOLARIS" -a -z "$OLDREDHAT" ]; then
if tty -s; then
if [ ! "$SUDO_UID" ]; then
if klist -s 2>/dev/null; then
if tty -s; then
if [ ! "$SUDO_UID" ]; then
if klist -s 2>/dev/null; then
@@
-86,4
+86,12
@@
if [ -z "$OLDSOLARIS" -a -z "$OLDREDHAT" ]; then
fi
unset cache ccname default ng
fi
unset cache ccname default ng
-alias kinit='( builtin cd /; exec -c kinit )'
+function kinit() {
+ local args=
+ local krb5ccname=
+ if [ -n "$KRB5CCNAME" ]; then
+ args="$@"
+ [ "${args/-c /}" = "$args" ] && krb5ccname="-c $KRB5CCNAME"
+ fi
+ ( builtin cd /; exec -c kinit $krb5ccname ${1+"$@"} )
+}