NetBSD: xattr.get_all: catch also errno.EOPNOTSUPP

This commit is contained in:
Thomas Waldmann 2025-11-12 02:57:11 +01:00
parent 0286fb6dc4
commit bcf3316308
No known key found for this signature in database
GPG key ID: 243ACFA951F78E01

View file

@ -86,7 +86,7 @@ def get_all(path, follow_symlinks=False):
# EINVAL: maybe xattr name is invalid or other issue, #6988
logger.warning("When getting extended attribute %s: %s", name.decode(errors="replace"), str(e))
except OSError as e:
if e.errno in (errno.ENOTSUP, errno.EPERM):
if e.errno in (errno.ENOTSUP, errno.EOPNOTSUPP, errno.EPERM):
# if xattrs are not supported on the filesystem, we give up.
# EPERM might be raised by listxattr.
pass