summaryrefslogtreecommitdiff
path: root/rdiff-backup/rdiff_backup/eas_acls.py
diff options
context:
space:
mode:
authordgaudet <dgaudet@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109>2005-07-02 21:16:53 +0000
committerdgaudet <dgaudet@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109>2005-07-02 21:16:53 +0000
commit6e8704ae39fd79ad414fd90c713e7c7ee4415a59 (patch)
treef4406a0f078ccd35292836f952cb5e885136403d /rdiff-backup/rdiff_backup/eas_acls.py
parentb1d7742ccfc4ad303ea3302d68afc3def827107d (diff)
downloadrdiff-backup-6e8704ae39fd79ad414fd90c713e7c7ee4415a59.tar.gz
Log EACCES from listxattr rather than raising an exception -- this can happen
when the repository has permission problems. git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup/trunk@598 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
Diffstat (limited to 'rdiff-backup/rdiff_backup/eas_acls.py')
-rw-r--r--rdiff-backup/rdiff_backup/eas_acls.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/rdiff-backup/rdiff_backup/eas_acls.py b/rdiff-backup/rdiff_backup/eas_acls.py
index aa87606..fe24c81 100644
--- a/rdiff-backup/rdiff_backup/eas_acls.py
+++ b/rdiff-backup/rdiff_backup/eas_acls.py
@@ -59,6 +59,9 @@ class ExtendedAttributes:
try: attr_list = rp.conn.xattr.listxattr(rp.path)
except IOError, exc:
if exc[0] == errno.EOPNOTSUPP: return # if not sup, consider empty
+ if exc[0] == errno.EACCES:
+ log.Log("Warning: listattr(%s): %s" % (rp.path, exc), 3)
+ return
raise
for attr in attr_list:
if not attr.startswith('user.'):