summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorneilbrown <neilbrown>2005-12-21 04:10:33 +0000
committerneilbrown <neilbrown>2005-12-21 04:10:33 +0000
commit1d715bffd42b582d99f16f5eca46b9cc9b71dbad (patch)
tree5c27f07f29d31582d0b4328fae1ad84f2ea4d60b
parenta021f1f459d8fd471123848c8f83a73a5fc1629e (diff)
downloadnfs-utils-1d715bffd42b582d99f16f5eca46b9cc9b71dbad.tar.gz
head/tail fixes
-rw-r--r--ChangeLog5
-rw-r--r--utils/gssd/gss_destroy_creds2
-rwxr-xr-xutils/nhfsstone/nhfsrun2
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 <neilb@suse.de>
- 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 <kwc@citi.umich.edu> NeilBrown <neilb@suse.de>
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