From: Jim Meyering Date: Fri, 14 Mar 2003 07:56:09 +0000 (+0000) Subject: Relax the test for the `local'ness of a file system, X-Git-Tag: v4.5.10~2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e4a76f1076b1a791fb322595468916503b7f3a7b;p=thirdparty%2Fcoreutils.git Relax the test for the `local'ness of a file system, so that now it works also for tmpfs. --- diff --git a/tests/du/slink b/tests/du/slink index fd09613d95..7469b91387 100755 --- a/tests/du/slink +++ b/tests/du/slink @@ -17,9 +17,9 @@ cd $tmp || framework_failure=1 # Determine if `.' is on a local (would non-NFS be sufficient?) file system. # On at least some NFS implementations, symlinks never take up space, -df --local . > tmp +df --local . | tail -n +2 > tmp # So if this is a non-local file system, skip the test. -if grep '^/' tmp > /dev/null; then +if test -s tmp; then : # Ok. else echo "$0: skipping this test, since \`.' is on a non-local file system" 1>&2