HomeFreeBSD

linux(4): Fix listxattr for the case when the size is 0

Description

linux(4): Fix listxattr for the case when the size is 0

If size is specified as zero, these calls return the current size
of the list of extended attribute names (and leave list unchanged).

Tested by: zirias
MFC after: 1 week

(cherry picked from commit 18d1c86788f66f42c4e096142f4f8d168f68732c)

Details

Provenance
dchaginAuthored on Sep 5 2023, 8:51 AM
Parents
rGbce9c2e34006: linux(4): Return ENOTSUP from xattr syscalls instead of EPERM
Branches
Unknown
Tags
Unknown