From: Wayne Davison Date: Sat, 22 Aug 2009 16:33:55 +0000 (-0700) Subject: Fix the chmod-temp-dir test if /var/tmp doesn't exist. X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/commitdiff_plain/8a21be11f08dca35e8db1bf7225975f90d66c997 Fix the chmod-temp-dir test if /var/tmp doesn't exist. Fixes bug 6569. --- diff --git a/testsuite/chmod-temp-dir.test b/testsuite/chmod-temp-dir.test index 0768f185..bce544c3 100644 --- a/testsuite/chmod-temp-dir.test +++ b/testsuite/chmod-temp-dir.test @@ -21,7 +21,11 @@ sdev=`$TOOLDIR/getfsdev $scratchdir` tdev=`$TOOLDIR/getfsdev $tmpdir2` if [ x$sdev = x$tdev ]; then tmpdir2=/var/tmp - tdev=`$TOOLDIR/getfsdev $tmpdir2` + if [ -d $tmpdir2 ]; then + tdev=`$TOOLDIR/getfsdev $tmpdir2` + else + tdev="$sdev" + fi [ x$sdev = x$tdev ] && test_skipped "Can't find a tmp dir on a different file system" fi