Fix the chmod-temp-dir test if /var/tmp doesn't exist.

Fixes bug 6569.
This commit is contained in:
Wayne Davison
2009-08-22 09:33:55 -07:00
parent ce827c3e50
commit 8a21be11f0

View File

@@ -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