summaryrefslogtreecommitdiff
path: root/rdiff-backup/rdiff_backup
diff options
context:
space:
mode:
authorowsla <owsla@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109>2008-09-26 23:13:18 +0000
committerowsla <owsla@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109>2008-09-26 23:13:18 +0000
commit6bf433fed5a4d54b678315adbfd0439707bdd730 (patch)
tree975c38c8cc77c7505a7cfeb40b47d9474686b8f6 /rdiff-backup/rdiff_backup
parent4b511ebaafe5ce126fcfef2e58cd1932f8149f66 (diff)
downloadrdiff-backup-6bf433fed5a4d54b678315adbfd0439707bdd730.tar.gz
On Mac OS X, read the com.apple.FinderInfo extended attribute since it is the
only storage location for the 'busy' (Z) Finder attribute. git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup/trunk@938 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
Diffstat (limited to 'rdiff-backup/rdiff_backup')
-rw-r--r--rdiff-backup/rdiff_backup/eas_acls.py5
-rw-r--r--rdiff-backup/rdiff_backup/rpath.py4
2 files changed, 6 insertions, 3 deletions
diff --git a/rdiff-backup/rdiff_backup/eas_acls.py b/rdiff-backup/rdiff_backup/eas_acls.py
index 856b700..af01c5e 100644
--- a/rdiff-backup/rdiff_backup/eas_acls.py
+++ b/rdiff-backup/rdiff_backup/eas_acls.py
@@ -68,9 +68,8 @@ class ExtendedAttributes:
if attr.startswith('system.'):
# Do not preserve system extended attributes
continue
- if not rp.isdir() and attr == 'com.apple.FinderInfo' or attr == 'com.apple.ResourceFork':
- # FinderInfo and Resource Fork handled elsewhere, except
- # for directories
+ if not rp.isdir() and attr == 'com.apple.ResourceFork':
+ # Resource Fork handled elsewhere, except for directories
continue
try: self.attr_dict[attr] = rp.conn.xattr.getxattr(rp.path, attr)
except IOError, exc:
diff --git a/rdiff-backup/rdiff_backup/rpath.py b/rdiff-backup/rdiff_backup/rpath.py
index 0dadd43..8fd7d85 100644
--- a/rdiff-backup/rdiff_backup/rpath.py
+++ b/rdiff-backup/rdiff_backup/rpath.py
@@ -1455,6 +1455,10 @@ def setdata_local(rpath):
def carbonfile_get(rpath):
"""Return carbonfile value for local rpath"""
+ # Note, after we drop support for Mac OS X 10.0 - 10.3, it will no longer
+ # be necessary to read the finderinfo struct since it is a strict subset
+ # of the data stored in the com.apple.FinderInfo extended attribute
+ # introduced in 10.4. Indeed, FSpGetFInfo() is deprecated on 10.4.
from Carbon.File import FSSpec
from Carbon.File import FSRef
import Carbon.Files