X-Git-Url: http://git.iain.cx/?a=blobdiff_plain;f=.profile.d%2Fkrb5.bashrc;h=477dc3f78600c8ad7a51779514d00ef350248fd3;hb=a324d2bcb5a8fc1c8638aa19c60078b94b4e4ecf;hp=9a1f2e94894f5c5c8368bf35f92b292e925a6f84;hpb=b3d373ad52b5671234fbe6361e509fef08ac2111;p=profile.git diff --git a/.profile.d/krb5.bashrc b/.profile.d/krb5.bashrc index 9a1f2e9..477dc3f 100644 --- a/.profile.d/krb5.bashrc +++ b/.profile.d/krb5.bashrc @@ -1,7 +1,8 @@ alias kssh='ssh -o preferredauthentications=gssapi-with-mic' alias pssh='ssh -o preferredauthentications=password,keyboard-interactive' -if [ -z "$OLDSOLARIS" -a -z "$OLDREDHAT" ]; then +unalias kinit 2>/dev/null +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 @@ -85,3 +86,6 @@ if [ -z "$OLDSOLARIS" -a -z "$OLDREDHAT" ]; then fi unset cache ccname default ng +function kinit() { + ( builtin cd /; exec -c kinit ${1+"$@"} ) +}