From 72a9f5cc0dc4f55716b1c2f48a75a304aabade00 Mon Sep 17 00:00:00 2001 From: Martin Ebourne Date: Fri, 17 Feb 2006 02:26:35 +0000 Subject: On XFS the file permissions appear to apply also to the extended attribute data. ie. If a file is not readable then nor is the extended attribute data - even if there isn't any this is still an error. This is not an ideal fix for this problem. Really we should notify a read-error as we do for file read permission problems and continue, but the BackupClientFileAttributes code is called from multiple locations and it is not clear that it could always report the error in such a way, nor even continue. This alternative is better than aborting the whole run. In the case where a file isn't readable this will be found and reported elsewhere anyway. --- lib/backupclient/BackupClientFileAttributes.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/backupclient/BackupClientFileAttributes.cpp b/lib/backupclient/BackupClientFileAttributes.cpp index 3bb7dfeb..974db3c9 100644 --- a/lib/backupclient/BackupClientFileAttributes.cpp +++ b/lib/backupclient/BackupClientFileAttributes.cpp @@ -555,7 +555,7 @@ void BackupClientFileAttributes::FillExtendedAttr(StreamableMemBlock &outputBloc outputBlock.ResizeBlock(xattrSize); } - else if(listSize<0 && errno!=EOPNOTSUPP) + else if(listSize<0 && errno!=EOPNOTSUPP && errno!=EACCES) { THROW_EXCEPTION(CommonException, OSFileError); } -- cgit v1.2.3