Sophie

Sophie

distrib > Scientific%20Linux > 5x > x86_64 > by-pkgid > e13bdbccf28aef9f5083a287bdaf7b69 > files > 4

openafs.SLx-1.4.3-0.rc2.36.src.rpm

--- openafs-1.3.79/src/afsd/afs.rc.linux.orig	2005-02-27 17:08:56.437978000 +0100
+++ openafs-1.3.79/src/afsd/afs.rc.linux	2005-02-27 17:25:05.592521198 +0100
@@ -147,7 +147,7 @@
 
 generate_cacheinfo() {
     if [ "$CACHESIZE" = "AUTOMATIC" ]; then
-	LINE=`df -k $CACHE | tail -1`
+	LINE=`df -Pk $CACHE | tail -1`
 	PART=`echo $LINE | awk '{ if ( ($NF != "/usr")  && ($NF != "/") ) print $NF; else print "NONE";}'`
 	if [ "$PART" = "NONE" ]; then
 	    echo "$CACHE or /usr/vice is not a separate partition"