Skip to content

Commit 52df4ad

Browse files
NetBSD: xattr.get_all: catch also errno.EOPNOTSUPP
1 parent 2e197aa commit 52df4ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/borg/xattr.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ def get_all(path, follow_symlinks=False):
8686
# EINVAL: maybe xattr name is invalid or other issue, #6988
8787
logger.warning("When getting extended attribute %s: %s", name.decode(errors="replace"), str(e))
8888
except OSError as e:
89-
if e.errno in (errno.ENOTSUP, errno.EPERM):
89+
if e.errno in (errno.ENOTSUP, errno.EOPNOTSUPP, errno.EPERM):
9090
# if xattrs are not supported on the filesystem, we give up.
9191
# EPERM might be raised by listxattr.
9292
pass

0 commit comments

Comments
 (0)