Make sure the tmpdir2 dir is writable.
authorWayne Davison <wayne@opencoder.net>
Wed, 10 Jun 2020 20:58:43 +0000 (13:58 -0700)
committerWayne Davison <wayne@opencoder.net>
Wed, 10 Jun 2020 20:59:02 +0000 (13:59 -0700)
testsuite/chmod-temp-dir.test

index 1e05bcb50112b4325417cdd1e113171e3f436882..085ab00835d50b614d28197654e5c06a267b645a 100644 (file)
@@ -17,7 +17,7 @@ sdev=`$TOOLDIR/getfsdev $scratchdir`
 tdev=$sdev
 
 for tmpdir2 in "${RSYNC_TEST_TMP:-/override-tmp-not-specified}" /run/shm/tmp /var/tmp /tmp; do
-    [ -d "$tmpdir2" ] || continue
+    [ -d "$tmpdir2" -a -w "$tmpdir2" ] || continue
     tdev=`$TOOLDIR/getfsdev "$tmpdir2"`
     [ x$sdev != x$tdev ] && break
 done