From 6e8704ae39fd79ad414fd90c713e7c7ee4415a59 Mon Sep 17 00:00:00 2001 From: dgaudet Date: Sat, 2 Jul 2005 21:16:53 +0000 Subject: 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 --- rdiff-backup/rdiff_backup/eas_acls.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'rdiff-backup/rdiff_backup') 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.'): -- cgit v1.2.1