From 1d715bffd42b582d99f16f5eca46b9cc9b71dbad Mon Sep 17 00:00:00 2001 From: neilbrown Date: Wed, 21 Dec 2005 04:10:33 +0000 Subject: [PATCH] head/tail fixes --- ChangeLog | 5 ++++- utils/gssd/gss_destroy_creds | 2 +- utils/nhfsstone/nhfsrun | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 916ba0e..a471e6c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,9 @@ 2005-12-21 NeilBrown - utils/rquotad/rquota_server.c: Detect and handle both old-style + *utils/rquotad/rquota_server.c: Detect and handle both old-style (2.4) and new-style(2.6) quotactl. + *utils/gssd/gss_destroy_cred: remove dependence on "head -1" which + might need to be "head -n 1" + *utils/nhfsstone/nhfsrun: convert "tail -1" to "tail -n 1" 2005-12-20 Kevin Coffman NeilBrown Substantial Makefile/configure rewrite. diff --git a/utils/gssd/gss_destroy_creds b/utils/gssd/gss_destroy_creds index 666bdd9..1f978d1 100644 --- a/utils/gssd/gss_destroy_creds +++ b/utils/gssd/gss_destroy_creds @@ -1,6 +1,6 @@ #!/bin/bash -path=`mount|grep rpc_pipefs|head -1|awk '{ print $3 }'` +path=`mount|grep rpc_pipefs|awk '{ print $3;exit }'` if [ -z "$path" ]; then echo "unable to find rpc_pipefs; is it mounted?" diff --git a/utils/nhfsstone/nhfsrun b/utils/nhfsstone/nhfsrun index dfc24eb..a0ac0f8 100755 --- a/utils/nhfsstone/nhfsrun +++ b/utils/nhfsstone/nhfsrun @@ -54,6 +54,6 @@ LOAD=$START while [ $LOAD -le $END ]; do echo nhfsstone -l $LOAD nhfsstone -l $LOAD >> $OUTFILE - tail -1 $OUTFILE + tail -n 1 $OUTFILE LOAD=`expr $LOAD + $INCR` done -- 2.39.2