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
# 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() {