]> git.decadent.org.uk Git - nfs-utils.git/commitdiff
head/tail fixes
authorneilbrown <neilbrown>
Wed, 21 Dec 2005 04:10:33 +0000 (04:10 +0000)
committerneilbrown <neilbrown>
Wed, 21 Dec 2005 04:10:33 +0000 (04:10 +0000)
ChangeLog
utils/gssd/gss_destroy_creds
utils/nhfsstone/nhfsrun

index 916ba0e07481823971b92856788843680bc090f4..a471e6c6d1af216ddd40e4456469871b42014966 100644 (file)
--- 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.  
index 666bdd91682ad761cbefe0d185a5e00587e4afc2..1f978d1b3c1ffbf515c0c938fb3ea6daee465204 100644 (file)
@@ -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?"
index dfc24eb05dd5f7ec4baa4cd62b41b880e951b67f..a0ac0f8a86f38e78e012adfffc8ac034cf4df632 100755 (executable)
@@ -54,6 +54,6 @@ LOAD=$START
 while [ $LOAD -le $END ]; do
        echo nhfsstone -l $LOAD
        nhfsstone -l $LOAD >> $OUTFILE
-       tail -1 $OUTFILE
+       tail -1 $OUTFILE
        LOAD=`expr $LOAD + $INCR`
 done