Commit b2c4309e authored by owsla's avatar owsla

Workaround for broken support for symlink extended attributes in pyxattr <

0.2.2.


git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup@956 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
parent b2f21657
New in v1.2.3 (????/??/??) New in v1.2.3 (????/??/??)
--------------------------- ---------------------------
Workaround for broken support for symlink extended attributes in pyxattr <
0.2.2. Thanks to Leo Bergolth for reporting the issue. (Andrew Ferguson)
Handle ELOOP ("Too many levels of symbolic links") error when reading extended Handle ELOOP ("Too many levels of symbolic links") error when reading extended
attributes from symlinks. Closes Savannah bug #24790. (Andrew Ferguson) attributes from symlinks. Closes Savannah bug #24790. (Andrew Ferguson)
......
...@@ -79,6 +79,8 @@ class ExtendedAttributes: ...@@ -79,6 +79,8 @@ class ExtendedAttributes:
# File probably modified while reading, just continue # File probably modified while reading, just continue
if exc[0] == errno.ENODATA: continue if exc[0] == errno.ENODATA: continue
elif exc[0] == errno.ENOENT: break elif exc[0] == errno.ENOENT: break
# Handle bug in pyxattr < 0.2.2
elif exc[0] == errno.ERANGE: continue
else: raise else: raise
def clear_rp(self, rp): def clear_rp(self, rp):
......
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