]> arthur.barton.de Git - bup.git/commitdiff
t/compare-trees: don't check ACLs on Cygwin (no support).
authorRob Browning <rlb@defaultvalue.org>
Mon, 27 May 2013 16:15:40 +0000 (11:15 -0500)
committerRob Browning <rlb@defaultvalue.org>
Mon, 27 May 2013 17:28:51 +0000 (12:28 -0500)
Signed-off-by: Rob Browning <rlb@defaultvalue.org>
README.md
t/compare-trees

index 19998d24f0c8817164b75ab11da9ed31c3a1a5e2..2351c77d8d6f52680f37e5a64179da3e3ab736e6 100644 (file)
--- 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
 ============
 
index 32edcde2b2d39f4d009d4936b6b672ffb16b0b2a..80b056a1cdc8b73009c9cff434867bd4a99056ae 100755 (executable)
@@ -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