Skip to content

Commit 6dcaffa

Browse files
NetBSD: add verbatim 45
it crashes frequently with errno 45, although ENOTSUP is catched in get_all() - is the constant defined wrongly? /home/runner/work/borg/borg/src/borg/archiver: extended stat (xattrs): [Errno 45] Operation not supported: '<FD 15>'
1 parent bf4d5dc commit 6dcaffa

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.EPERM, 45):
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)