summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorowsla <owsla@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109>2007-08-09 13:28:21 +0000
committerowsla <owsla@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109>2007-08-09 13:28:21 +0000
commit4061a5c848f528ce390631c8cb88b750624ef399 (patch)
tree547a5060c19780bf1f2d41164b7c54650cb4f258
parent21f6acc8fd95078e8b09df1061e3797efab06782 (diff)
downloadrdiff-backup-4061a5c848f528ce390631c8cb88b750624ef399.tar.gz
Warn if can't write extended attribute.
git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup/trunk@839 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
-rw-r--r--rdiff-backup/CHANGELOG2
-rw-r--r--rdiff-backup/rdiff_backup/eas_acls.py2
2 files changed, 4 insertions, 0 deletions
diff --git a/rdiff-backup/CHANGELOG b/rdiff-backup/CHANGELOG
index 3b534e4..2fe6ef6 100644
--- a/rdiff-backup/CHANGELOG
+++ b/rdiff-backup/CHANGELOG
@@ -1,6 +1,8 @@
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
bit on non-directory files on systems that don't support that action.
Thanks to Jim Nasby for the bug report. (Andrew Ferguson)
diff --git a/rdiff-backup/rdiff_backup/eas_acls.py b/rdiff-backup/rdiff_backup/eas_acls.py
index 0b37898..2ead1a1 100644
--- a/rdiff-backup/rdiff_backup/eas_acls.py
+++ b/rdiff-backup/rdiff_backup/eas_acls.py
@@ -108,6 +108,8 @@ class ExtendedAttributes:
# 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:
+ log.Log("Warning: unable to write xattr %s to %s"
+ % (name, rp.path), 3)
continue
else: raise