X-Git-Url: http://git.iain.cx/?a=blobdiff_plain;f=opt%2Fbin%2Fbecome;h=0825bd68c65e1b02f5137a01dff8938300d465aa;hb=47ff5806af2ee0d85d1026cc6a1bd6219bdb9e26;hp=f39fc49edf94fddce7399ca0e70848ab5944198e;hpb=325e12ccd9b27a3fa227b2c8dd331a168f7dfdbb;p=profile.git diff --git a/opt/bin/become b/opt/bin/become index f39fc49..0825bd6 100755 --- a/opt/bin/become +++ b/opt/bin/become @@ -51,7 +51,7 @@ if exec 3>"$file" && exec <"$file" && rm "$file"; then if [ -n "$PRINCIPAL" ]; then echo >&3 "PRINCIPAL='$PRINCIPAL'" if [ $kerberos = 1 ]; then - ccname=$(klist 2>/dev/null | sed -n 's/^Ticket cache: FILE://p') + ccname=$(klist 2>/dev/null | sed -n 's/^Ticket cache: [DF]I[LR][E:]://p') if [ -f "$ccname" ]; then echo >&3 "export KRB5CCNAME='$KRB5CCNAME'" openssl=$(find_working openssl)