Switch over to Matt's idea of using FLAG_OWNED_BY_US.
[rsync.git] / runtests.sh
index 2eb4182d0638b161017d09f3ae1a646d1ef22232..41d566bf0c617d07cbf1e4c1e0eb7598366e39fa 100755 (executable)
@@ -238,7 +238,10 @@ prep_scratch() {
     # Get rid of default ACLs and dir-setgid to avoid confusing some tests.
     $setfacl_nodef "$scratchdir" || true
     chmod g-s "$scratchdir"
-    ln -s "$srcdir" "$scratchdir/src"
+    case "$srcdir" in
+    /*) ln -s "$srcdir" "$scratchdir/src" ;;
+    *)  ln -s "$TOOLDIR/$srcdir" "$scratchdir/src" ;;
+    esac
     return 0
 }