]> arthur.barton.de Git - bup.git/blobdiff - t/compare-trees
Completely disable ACL support on OS X for now.
[bup.git] / t / compare-trees
index f03fa75ae066d4be272075f9f191c1aeca6798b1..b611b0f489402e4b56d1652661ffb75b3b0a5640 100755 (executable)
@@ -21,7 +21,7 @@ EOF
 
 verify_content=" --checksum"
 
-while getopts "hc" OPTION
+while getopts "hcx" OPTION
 do
     case "$OPTION" in
         h) usage; exit 0;;
@@ -48,7 +48,15 @@ trap "rm -rf '${tmpfile}'" EXIT
 rsync_opts="-niaH$verify_content --delete"
 
 if rsync --version | grep -q xattrs; then
-    rsync_opts="$rsync_opts -AX"
+    case $OSTYPE in
+        cygwin|darwin)
+            # bup doesn't support ACLs here yet.
+            rsync_opts="$rsync_opts -X"
+            ;;
+        *)
+            rsync_opts="$rsync_opts -AX"
+            ;;
+    esac
 else
     echo "Not comparing xattrs/acls (unsupported by available rsync)." 1>&2
 fi