From 955e5e8e0c9442e99c3d67ea79afe77a0833d42a Mon Sep 17 00:00:00 2001 From: Iain Patterson Date: Thu, 13 Jun 2013 10:36:38 +0100 Subject: [PATCH] Recognise DIR: cache collections when becoming. The current ticket cache may be a collection. Look for the DIR: prefix as well as FILE:. --- opt/bin/become | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.7.4