From: Wayne Davison Date: Mon, 21 May 2007 02:06:51 +0000 (+0000) Subject: Make sure that the scratch dirs have rwx permissions before we try X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/commitdiff_plain/dfcb3865698eb380ccfff689880f7fc4e2638331 Make sure that the scratch dirs have rwx permissions before we try a recursive rm. --- diff --git a/runtests.sh b/runtests.sh index 286f0c5d..ad93862c 100755 --- a/runtests.sh +++ b/runtests.sh @@ -221,7 +221,7 @@ suitedir="$srcdir/testsuite" export scratchdir suitedir prep_scratch() { - [ -d "$scratchdir" ] && rm -rf "$scratchdir" + [ -d "$scratchdir" ] && chmod -R u+rwX "$scratchdir" && rm -rf "$scratchdir" mkdir "$scratchdir" # Get rid of default ACLs and dir-setgid to avoid confusing some tests. $setfacl_nodef "$scratchdir" || true