Commit c1b32ebb authored by owsla's avatar owsla

Warn if can't write extended attribute.


git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup@839 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
parent 8579d079
New in v1.1.13 (????/??/??) New in v1.1.13 (????/??/??)
--------------------------- ---------------------------
Warn if can't write extended attribute. (Andrew Ferguson)
Gracefully handle situations where rdiff-backup tries to set the sticky Gracefully handle situations where rdiff-backup tries to set the sticky
bit on non-directory files on systems that don't support that action. bit on non-directory files on systems that don't support that action.
Thanks to Jim Nasby for the bug report. (Andrew Ferguson) Thanks to Jim Nasby for the bug report. (Andrew Ferguson)
......
...@@ -108,6 +108,8 @@ class ExtendedAttributes: ...@@ -108,6 +108,8 @@ class ExtendedAttributes:
# Mac and Linux attributes have different namespaces, so # Mac and Linux attributes have different namespaces, so
# fail gracefully if can't call setxattr # fail gracefully if can't call setxattr
if exc[0] == errno.EOPNOTSUPP or exc[0] == errno.EACCES: if exc[0] == errno.EOPNOTSUPP or exc[0] == errno.EACCES:
log.Log("Warning: unable to write xattr %s to %s"
% (name, rp.path), 3)
continue continue
else: raise else: raise
......
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