diff options
author | owsla <owsla@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109> | 2007-07-11 16:51:44 +0000 |
---|---|---|
committer | owsla <owsla@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109> | 2007-07-11 16:51:44 +0000 |
commit | 15ace9d219b598998772c4df1657055bd6650a70 (patch) | |
tree | 19f1e82fd4e236931e655c375f3c7facd1496e58 /rdiff-backup/rdiff_backup/eas_acls.py | |
parent | dfaf1e838bf9d83abdb9ee2927d56d2d1ebd7c9d (diff) | |
download | rdiff-backup-15ace9d219b598998772c4df1657055bd6650a70.tar.gz |
listxattr() can also throw EPERM error if not supported.
git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup/trunk@820 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 | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/rdiff-backup/rdiff_backup/eas_acls.py b/rdiff-backup/rdiff_backup/eas_acls.py index ed9df1b..71878db 100644 --- a/rdiff-backup/rdiff_backup/eas_acls.py +++ b/rdiff-backup/rdiff_backup/eas_acls.py @@ -58,7 +58,8 @@ class ExtendedAttributes: """Set the extended attributes from an rpath""" 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.EOPNOTSUPP or exc[0] == errno.EPERM: + return # if not supported, consider empty if exc[0] == errno.EACCES: log.Log("Warning: listattr(%s): %s" % (rp.path, exc), 3) return |