From 15ace9d219b598998772c4df1657055bd6650a70 Mon Sep 17 00:00:00 2001 From: owsla Date: Wed, 11 Jul 2007 16:51:44 +0000 Subject: listxattr() can also throw EPERM error if not supported. git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup/trunk@820 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109 --- rdiff-backup/CHANGELOG | 2 ++ rdiff-backup/rdiff_backup/eas_acls.py | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'rdiff-backup') diff --git a/rdiff-backup/CHANGELOG b/rdiff-backup/CHANGELOG index a5eaa30..8082cba 100644 --- a/rdiff-backup/CHANGELOG +++ b/rdiff-backup/CHANGELOG @@ -1,6 +1,8 @@ New in v1.1.12 (????/??/??) --------------------------- +listxattr() can also throw EPERM error if not supported. (Andrew Ferguson) + Do something sensible if we get an IOError while trying to appropriately log another exception. (Andrew Ferguson) diff --git a/rdiff-backup/rdiff_backup/eas_acls.py b/rdiff-backup/rdiff_backup/eas_acls.py index ed9df1b..71878db 100644 --- a/rdiff-backup/rdiff_backup/eas_acls.py +++ b/rdiff-backup/rdiff_backup/eas_acls.py @@ -58,7 +58,8 @@ class ExtendedAttributes: """Set the extended attributes from an rpath""" 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.EOPNOTSUPP or exc[0] == errno.EPERM: + return # if not supported, consider empty if exc[0] == errno.EACCES: log.Log("Warning: listattr(%s): %s" % (rp.path, exc), 3) return -- cgit v1.2.1