summaryrefslogtreecommitdiff
path: root/runtests.sh
diff options
context:
space:
mode:
authorWayne Davison <wayned@samba.org>2007-05-21 02:06:51 +0000
committerWayne Davison <wayned@samba.org>2007-05-21 02:06:51 +0000
commitdfcb3865698eb380ccfff689880f7fc4e2638331 (patch)
tree7a2d297ae0fc25cd46edd8a34faa4dec9eb656f3 /runtests.sh
parentd15f2ff0cf372be49d57b1d7884557ddbe1a4d9c (diff)
downloadrsync-dfcb3865698eb380ccfff689880f7fc4e2638331.tar.gz
rsync-dfcb3865698eb380ccfff689880f7fc4e2638331.tar.bz2
rsync-dfcb3865698eb380ccfff689880f7fc4e2638331.zip
Make sure that the scratch dirs have rwx permissions before we try
a recursive rm.
Diffstat (limited to 'runtests.sh')
-rwxr-xr-xruntests.sh2
1 files changed, 1 insertions, 1 deletions
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