summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/bbackupd/testbbackupd.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/bbackupd/testbbackupd.cpp b/test/bbackupd/testbbackupd.cpp
index 416aa139..18ea146a 100644
--- a/test/bbackupd/testbbackupd.cpp
+++ b/test/bbackupd/testbbackupd.cpp
@@ -116,6 +116,16 @@ bool readxattr_into_map(const char *filename, std::map<std::string,std::string>
ssize_t xattrNamesBufferSize = llistxattr(filename, NULL, 0);
if(xattrNamesBufferSize < 0)
{
+#if HAVE_DECL_ENOTSUP
+ if(errno == ENOTSUP)
+ {
+ // Pretend that it worked, leaving an empty map, so
+ // that the rest of the attribute comparison will
+ // proceed as normal.
+ return true;
+ }
+#endif // HAVE_DECL_ENOTSUP
+
return false;
}
else if(xattrNamesBufferSize > 0)