summaryrefslogtreecommitdiff
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
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
-rw-r--r--rdiff-backup/CHANGELOG2
-rw-r--r--rdiff-backup/rdiff_backup/eas_acls.py3
2 files changed, 5 insertions, 0 deletions
diff --git a/rdiff-backup/CHANGELOG b/rdiff-backup/CHANGELOG
index 9ca6020..5f17688 100644
--- a/rdiff-backup/CHANGELOG
+++ b/rdiff-backup/CHANGELOG
@@ -30,6 +30,8 @@ patch#4136: OSX filename/rsrc has been deprecated for some time, and as of OSX
10.4 it causes log spam. the new proper use is filename/..namedfork/rsrc. fix
from Daniel Westermann-Clark.
+Log EACCES from listxattr rather than raising an exception -- this can happen
+when the repository has permission problems.
New in v0.13.6 (2005/04/07)
---------------------------
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.'):