From b574486fc69a8a7c13e50ff0070a30286bfe5f03 Mon Sep 17 00:00:00 2001 From: Rob Browning Date: Mon, 27 May 2013 11:15:40 -0500 Subject: [PATCH] t/compare-trees: don't check ACLs on Cygwin (no support). Signed-off-by: Rob Browning --- README.md | 7 +++++++ t/compare-trees | 7 ++++++- 2 files changed, 13 insertions(+), 1 deletion(-) 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 -- 2.39.2