From 40a9e4c54e163bcd199925524ad0dcaf3b2c8d45 Mon Sep 17 00:00:00 2001 From: Tom Yu Date: Tue, 10 Apr 2007 21:51:33 +0000 Subject: [PATCH] pull up r19225 from trunk r19225@cathode-dark-space: raeburn | 2007-03-13 20:52:47 -0400 ticket: 5447 Fix tail portability problem by adding an expression test to the existing awk invocation instead. Patch from Robert Basch at MIT. ticket: 5447 version_fixed: 1.6.1 git-svn-id: svn://anonsvn.mit.edu/krb5/branches/krb5-1-6@19414 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