From bcf33163082e05bac0d2244b1ce2fa5aa5adefd3 Mon Sep 17 00:00:00 2001 From: Thomas Waldmann Date: Wed, 12 Nov 2025 02:57:11 +0100 Subject: [PATCH] NetBSD: xattr.get_all: catch also errno.EOPNOTSUPP --- src/borg/xattr.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/borg/xattr.py b/src/borg/xattr.py index 1cadd38b0..18ac6abf3 100644 --- a/src/borg/xattr.py +++ b/src/borg/xattr.py @@ -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