From: Wayne Davison Date: Sun, 18 May 2008 14:00:48 +0000 (-0700) Subject: Fixed the "src" symlink in each testtmp subdir. X-Git-Tag: v3.0.3pre3~20 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=928da42359dff226f7f1fbcb36d3c150c4e95ba9;p=thirdparty%2Frsync.git Fixed the "src" symlink in each testtmp subdir. --- diff --git a/runtests.sh b/runtests.sh index 2eb4182d..41d566bf 100755 --- a/runtests.sh +++ b/runtests.sh @@ -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 }