From 7014e5817b47294c33ab296c675899c24a663128 Mon Sep 17 00:00:00 2001 From: Ken Raeburn Date: Wed, 14 Mar 2007 00:52:47 +0000 Subject: [PATCH] Fix tail portability problem by adding an expression test to the existing awk invocation instead. Patch from Robert Basch at MIT. ticket: 5447 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19225 dc483132-0cff-0310-8789-dd5450dbe970 --- src/kadmin/cli/k5srvutil.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/kadmin/cli/k5srvutil.sh b/src/kadmin/cli/k5srvutil.sh index 70b1b8548..e1284e6af 100755 --- a/src/kadmin/cli/k5srvutil.sh +++ b/src/kadmin/cli/k5srvutil.sh @@ -4,7 +4,7 @@ # returns a list of principals in the keytab # sorted and uniquified list_princs() { - klist -k $keytab | tail +4 | awk '{print $2}' | sort | uniq + klist -k $keytab | awk '(NR > 3) {print $2}' | sort | uniq } set_command() { -- 2.26.2