X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/815193e89ec0b5466fb7c13cefb6ccbc72088c1d..164faae84f0abf1c9df2f28a09ae8579c86acfa3:/testsuite/chmod-temp-dir.test diff --git a/testsuite/chmod-temp-dir.test b/testsuite/chmod-temp-dir.test index f17f3cc4..bce544c3 100644 --- a/testsuite/chmod-temp-dir.test +++ b/testsuite/chmod-temp-dir.test @@ -2,7 +2,7 @@ # Copyright (C) 2004 by Wayne Davison -# This program is distributable under the terms of the GNU GPL see +# This program is distributable under the terms of the GNU GPL (see # COPYING). # Test that various read-only and set[ug]id permissions work properly, @@ -13,12 +13,19 @@ hands_setup -tmpdir2=/tmp +tmpdir2=$RSYNC_TEST_TMP +if [ x"$tmpdir2" = x ]; then + tmpdir2=/tmp +fi 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