From: Ken Raeburn Date: Wed, 14 Mar 2007 00:52:47 +0000 (+0000) Subject: Fix tail portability problem by adding an expression test to the X-Git-Tag: krb5-1.7-alpha1~1258 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=7014e5817b47294c33ab296c675899c24a663128;p=krb5.git 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 --- 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() {