+2025-01-15 Pádraig Brady <P@draigBrady.com>
+
+ file-has-acl: handle listxattr returning ENOTSUP
+ listxattr() was seen to return ENOTSUP on virtiofs,
+ which resulted in ls outputting "Not supported" errors.
+ * lib/file-has-acl.c (aclinfo_may_indicate_xattr): Treat any
+ non valid acl errno as being inconclusive as to whether there
+ are xattrs available.
+
2025-01-14 Bruno Haible <bruno@clisp.org>
assert-h: Fix compilation error with gcc >= 13 on Solaris 11.
/* AI indicates XATTR may be present but wasn't accessible.
This is the case when [l]listxattr failed with E2BIG,
- or failed with EACCES which in Linux kernel 6.12 NFS can mean merely
- that we lack read access.
+ or is not supported (!acl_errno_valid()), or failed with EACCES
+ which in Linux kernel 6.12 NFS can mean merely that we lack read access.
*/
static bool
aclinfo_may_indicate_xattr (struct aclinfo const *ai)
{
- return ai->size < 0 && (ai->u.err == EACCES || ai->u.err == E2BIG);
+ return ai->size < 0 && (!acl_errno_valid (ai->u.err)
+ || ai->u.err == EACCES || ai->u.err == E2BIG);
}
/* Does NAME have XATTR? */