Commit 54aac262 authored by dgaudet's avatar dgaudet

Log EACCES from listxattr rather than raising an exception -- this can happen

when the repository has permission problems.


git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup@598 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
parent 8f7f5aa9
......@@ -30,6 +30,8 @@ patch#4136: OSX filename/rsrc has been deprecated for some time, and as of OSX
10.4 it causes log spam. the new proper use is filename/..namedfork/rsrc. fix
from Daniel Westermann-Clark.
Log EACCES from listxattr rather than raising an exception -- this can happen
when the repository has permission problems.
New in v0.13.6 (2005/04/07)
---------------------------
......
......@@ -59,6 +59,9 @@ class ExtendedAttributes:
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.EACCES:
log.Log("Warning: listattr(%s): %s" % (rp.path, exc), 3)
return
raise
for attr in attr_list:
if not attr.startswith('user.'):
......
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