[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Rdiff-backup-commits] Changes to rdiff-backup/rdiff_backup/eas_acls.py
From: |
dean gaudet |
Subject: |
[Rdiff-backup-commits] Changes to rdiff-backup/rdiff_backup/eas_acls.py |
Date: |
Tue, 28 Jun 2005 01:29:59 -0400 |
Index: rdiff-backup/rdiff_backup/eas_acls.py
diff -u rdiff-backup/rdiff_backup/eas_acls.py:1.10
rdiff-backup/rdiff_backup/eas_acls.py:1.11
--- rdiff-backup/rdiff_backup/eas_acls.py:1.10 Tue Jun 28 05:07:18 2005
+++ rdiff-backup/rdiff_backup/eas_acls.py Tue Jun 28 05:29:59 2005
@@ -74,7 +74,16 @@
def clear_rp(self, rp):
"""Delete all the extended attributes in rpath"""
for name in rp.conn.xattr.listxattr(rp.path):
- rp.conn.xattr.removexattr(rp.path, name)
+ try:
+ rp.conn.xattr.removexattr(rp.path, name)
+ except IOError, exc:
+ # SELinux attributes cannot be removed, and we
don't want
+ # to bail out or be too noisy at low log levels.
+ if exc[0] == errno.EACCES:
+ log.Log("Warning: unable to remove
xattr %s from %s"
+ % (name, rp.path), 7)
+ continue
+ else: raise
def write_to_rp(self, rp):
"""Write extended attributes to rpath rp"""