From e4a76f1076b1a791fb322595468916503b7f3a7b Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Fri, 14 Mar 2003 07:56:09 +0000 Subject: [PATCH] Relax the test for the `local'ness of a file system, so that now it works also for tmpfs. --- tests/du/slink | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.47.3