Commit e83934f3 authored by owsla's avatar owsla

listxattr() can also throw EPERM error if not supported.


git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup@820 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
parent 03fa068c
New in v1.1.12 (????/??/??)
---------------------------
listxattr() can also throw EPERM error if not supported. (Andrew Ferguson)
Do something sensible if we get an IOError while trying to appropriately
log another exception. (Andrew Ferguson)
......
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment