Commit b468c037 authored by owsla's avatar owsla

Catch another reasonable error when reading extended attributes.


git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup@906 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
parent da6d8bb6
New in v1.1.17 (????/??/??)
---------------------------
Catch another reasonable error when reading EAs. (Andrew Ferguson)
Use the Python os.lstat() on Windows. (Patch from Josh Nisly)
Support for Windows ACLs. (Patch from Josh Nisly and Fred Gansevles)
......
......@@ -58,7 +58,7 @@ 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 or exc[0] == errno.EPERM:
if exc[0] in (errno.EOPNOTSUPP, errno.EPERM, errno.ETXTBSY):
return # if not supported, consider empty
if exc[0] == errno.EACCES or exc[0] == errno.ENOENT:
log.Log("Warning: listattr(%s): %s" % (repr(rp.path), exc), 3)
......
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