summaryrefslogtreecommitdiff
path: root/lib/backupclient/BackupClientFileAttributes.cpp
diff options
context:
space:
mode:
authorMartin Ebourne <martin@ebourne.me.uk>2006-02-17 02:26:35 +0000
committerMartin Ebourne <martin@ebourne.me.uk>2006-02-17 02:26:35 +0000
commit72a9f5cc0dc4f55716b1c2f48a75a304aabade00 (patch)
tree94919b3793cdf6b0091867e603212d77f0d867d2 /lib/backupclient/BackupClientFileAttributes.cpp
parentf1f5bde35ded46f59a5b8ed1ee43f37e313e4576 (diff)
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.
Diffstat (limited to 'lib/backupclient/BackupClientFileAttributes.cpp')
-rw-r--r--lib/backupclient/BackupClientFileAttributes.cpp2
1 files changed, 1 insertions, 1 deletions
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);
}