--- a/debian/changelog Mon Nov 27 12:31:08 2006 +0000
+++ b/debian/changelog Wed Nov 29 22:45:39 2006 +0000
@@ -1,8 +1,8 @@
-ha-sync (0.6-1) testing; urgency=low
+ha-sync (0.7-1) testing; urgency=low
* new upstream
- -- Heiko Schlittermann <hs@schlittermann.de> Sat, 28 Nov 2006 13:40:22 +0100
+ -- Heiko Schlittermann <hs@schlittermann.de> Wed Nov 29 23:45:24 CET 2006
ha-sync (0.5-1) testing; urgency=low
--- a/ha-sync Mon Nov 27 12:31:08 2006 +0000
+++ b/ha-sync Wed Nov 29 22:45:39 2006 +0000
@@ -68,13 +68,18 @@
# if there's .acl in the top level dir, we have to apply these
# acl!
- find .$FS -name .acl -print0 | while read -d '' ACL; do
- dir=$(dirname "$ACL")
- acl=$(basename "$ACL")
- cmd="cd '/$dir' && setfacl --restore '$acl'"
- echo "Processing $ACL"
- ${opt_debug+echo} ${opt_dry+echo} ssh `other` "$cmd"
- done
+ #find .$FS -name .acl -print0 | while read -d '' ACL; do
+ # dir=$(dirname "$ACL")
+ # acl=$(basename "$ACL")
+ # cmd="cd '/$dir' && setfacl --restore '$acl'"
+ # echo "Processing $ACL"
+ # ${opt_debug+echo} ${opt_dry+echo} ssh `other` "$cmd"
+ #done
+
+ echo "processing acl..."
+ find ${FS##/} -xdev -depth -not -type l -print0 | xargs -0 getfacl --skip-base \
+ | ssh `other` 'cd / && setfacl --restore -'
+
done