From: Rob Browning Date: Mon, 27 May 2013 16:15:40 +0000 (-0500) Subject: t/compare-trees: don't check ACLs on Cygwin (no support). X-Git-Tag: bup-0.25-rc2~11 X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;ds=sidebyside;h=b574486fc69a8a7c13e50ff0070a30286bfe5f03;p=bup.git t/compare-trees: don't check ACLs on Cygwin (no support). Signed-off-by: Rob Browning --- diff --git a/README.md b/README.md index 19998d2..2351c77 100644 --- a/README.md +++ b/README.md @@ -256,6 +256,13 @@ Notes on NetBSD/pkgsrc anything useful. +Notes on Cygwin +--------------- + + - There is no support for ACLs. If/when some entrprising person + fixes this, adjust t/compare-trees. + + How it works ============ diff --git a/t/compare-trees b/t/compare-trees index 32edcde..80b056a 100755 --- a/t/compare-trees +++ b/t/compare-trees @@ -48,7 +48,12 @@ trap "rm -rf '${tmpfile}'" EXIT rsync_opts="-niaH$verify_content --delete" if rsync --version | grep -q xattrs; then - rsync_opts="$rsync_opts -AX" + if [[ $(uname) =~ CYGWIN ]]; then + # bup doesn't support ACLs on Cygwin yet. + rsync_opts="$rsync_opts -X" + else + rsync_opts="$rsync_opts -AX" + fi else echo "Not comparing xattrs/acls (unsupported by available rsync)." 1>&2 fi