Commit 028ba830 authored by owsla's avatar owsla

Catch EPERM error when trying to write extended attributes.


git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup@911 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
parent 80871e54
New in v1.1.17 (????/??/??)
---------------------------
Catch EPERM error when trying to write extended attributes. (Andrew Ferguson)
Allow rdiff-backup to be built into a single executable on Windows using
py2exe ("setup.py py2exe --single-file"). (Patch from Josh Nisly)
......
......@@ -111,8 +111,8 @@ class ExtendedAttributes:
except IOError, exc:
# Mac and Linux attributes have different namespaces, so
# fail gracefully if can't call setxattr
if exc[0] == errno.EOPNOTSUPP or exc[0] == errno.EACCES \
or exc[0] == errno.ENOENT:
if exc[0] in (errno.EOPNOTSUPP, errno.EPERM, errno.EACCES,
errno.ENOENT):
log.Log("Warning: unable to write xattr %s to %s"
% (name, repr(rp.path)), 6)
continue
......
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