X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/a055dbdd883a3c04318e13211c3ef7942314bee7..aa3faf5f8c2a05110bb1f39fd8d0742d5ca0431e:/testsuite/chmod-temp-dir.test 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