diff options
author | owsla <owsla@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109> | 2008-07-13 19:58:55 +0000 |
---|---|---|
committer | owsla <owsla@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109> | 2008-07-13 19:58:55 +0000 |
commit | a75f11bc2539ce5f56bf96822ab76888492d0a8e (patch) | |
tree | 92dde5e98f38f908acd5176632a7a579e73b6687 /rdiff-backup/rdiff_backup/eas_acls.py | |
parent | eeee83920af9ad5b423bd8f6cb6731394bbb28f2 (diff) | |
download | rdiff-backup-a75f11bc2539ce5f56bf96822ab76888492d0a8e.tar.gz |
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
Diffstat (limited to 'rdiff-backup/rdiff_backup/eas_acls.py')
-rw-r--r-- | rdiff-backup/rdiff_backup/eas_acls.py | 4 |
1 files changed, 2 insertions, 2 deletions
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 |