From a75f11bc2539ce5f56bf96822ab76888492d0a8e Mon Sep 17 00:00:00 2001 From: owsla Date: Sun, 13 Jul 2008 19:58:55 +0000 Subject: Catch EPERM error when trying to write extended attributes. git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup/trunk@911 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109 --- rdiff-backup/rdiff_backup/eas_acls.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'rdiff-backup/rdiff_backup/eas_acls.py') diff --git a/rdiff-backup/rdiff_backup/eas_acls.py b/rdiff-backup/rdiff_backup/eas_acls.py index 5077b6a..6b1e128 100644 --- a/rdiff-backup/rdiff_backup/eas_acls.py +++ b/rdiff-backup/rdiff_backup/eas_acls.py @@ -111,8 +111,8 @@ class ExtendedAttributes: except IOError, exc: # Mac and Linux attributes have different namespaces, so # fail gracefully if can't call setxattr - if exc[0] == errno.EOPNOTSUPP or exc[0] == errno.EACCES \ - or exc[0] == errno.ENOENT: + if exc[0] in (errno.EOPNOTSUPP, errno.EPERM, errno.EACCES, + errno.ENOENT): log.Log("Warning: unable to write xattr %s to %s" % (name, repr(rp.path)), 6) continue -- cgit v1.2.1